|
@@ -235,7 +235,7 @@ function ShapeEditorPlugin::onActivated(%this)
|
|
|
{
|
|
|
%obj = EWorldEditor.getSelectedObject(%i);
|
|
|
%shapeFile = ShapeEditor.getObjectShapeFile(%obj);
|
|
|
- if (%shapeFile !$= "")
|
|
|
+ if (%shapeFile !$= "" && isFile(%shapeFile))
|
|
|
{
|
|
|
if (!isObject(ShapeEditor.shape) || (ShapeEditor.shape.baseShape !$= %shapeFile))
|
|
|
{
|
|
@@ -251,6 +251,10 @@ function ShapeEditorPlugin::onActivated(%this)
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
+ else if(%shapeFile !$= "")
|
|
|
+ {
|
|
|
+ %this.openShapeAssetId(%shapeFile);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|