Fix selected IsoObject prefab

This commit is contained in:
2016-01-19 00:42:35 +06:00
parent 6133140820
commit 7bb01a9e7b

View File

@@ -30,7 +30,7 @@ namespace IsoTools.Internal {
}
void DirtyTargetPosition() {
if ( targets.Length == 1 ) {
if ( targets.Length == 1 && (target is IsoObject) && (target as IsoObject).gameObject.activeInHierarchy ) {
var position_prop = serializedObject.FindProperty("_position");
if ( position_prop != null ) {
var last_value = position_prop.vector3Value;