mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
prefab bug fix 2
This commit is contained in:
@@ -210,7 +210,7 @@ namespace IsoTools {
|
|||||||
IsoWorld _isoWorld = null;
|
IsoWorld _isoWorld = null;
|
||||||
public IsoWorld isoWorld {
|
public IsoWorld isoWorld {
|
||||||
get {
|
get {
|
||||||
if ( !_isoWorld ) {
|
if ( !_isoWorld && gameObject.activeInHierarchy ) {
|
||||||
_isoWorld = GameObject.FindObjectOfType<IsoWorld>();
|
_isoWorld = GameObject.FindObjectOfType<IsoWorld>();
|
||||||
}
|
}
|
||||||
return _isoWorld;
|
return _isoWorld;
|
||||||
@@ -292,10 +292,8 @@ namespace IsoTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OnValidate() {
|
void OnValidate() {
|
||||||
if ( gameObject.activeInHierarchy ) {
|
size = _size;
|
||||||
size = _size;
|
position = _position;
|
||||||
position = _position;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDrawGizmos() {
|
void OnDrawGizmos() {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Global
|
|||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
StartupItem = Assembly-CSharp.csproj
|
StartupItem = Assembly-CSharp.csproj
|
||||||
Policies = $0
|
Policies = $0
|
||||||
$0.TextStylePolicy = $1
|
$0.TextStylePolicy = $1
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Global
|
|||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
StartupItem = Assembly-CSharp.csproj
|
StartupItem = Assembly-CSharp.csproj
|
||||||
Policies = $0
|
Policies = $0
|
||||||
$0.TextStylePolicy = $1
|
$0.TextStylePolicy = $1
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
<Properties>
|
<Properties>
|
||||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="MonoDevelop.Default" />
|
||||||
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/IsoTools/Editor/IsoObjectEditor.cs">
|
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/IsoTools/Scripts/IsoWorld.cs">
|
||||||
<Files>
|
<Files>
|
||||||
<File FileName="Assets/IsoTools/Scripts/IsoObject.cs" Line="1" Column="1" />
|
<File FileName="Assets/IsoTools/Scripts/IsoObject.cs" Line="318" Column="24" />
|
||||||
<File FileName="Assets/IsoTools/Editor/IsoObjectEditor.cs" Line="29" Column="27" />
|
<File FileName="Assets/IsoTools/Scripts/IsoWorld.cs" Line="280" Column="41" />
|
||||||
<File FileName="Assets/IsoTools/Scripts/IsoWorld.cs" Line="534" Column="1" />
|
|
||||||
</Files>
|
</Files>
|
||||||
</MonoDevelop.Ide.Workbench>
|
</MonoDevelop.Ide.Workbench>
|
||||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||||
<BreakpointStore>
|
<BreakpointStore />
|
||||||
<Breakpoint file="/Users/blackmat/Programming/Projects/UnityIso/Assets/IsoTools/Editor/IsoObjectEditor.cs" line="34" />
|
|
||||||
</BreakpointStore>
|
|
||||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||||
</Properties>
|
</Properties>
|
||||||
Reference in New Issue
Block a user