Browse Source

verve mac compilation corrections - defaults for script bindings (return for one case, lack of input for the other)

Brian Roberts 6 years ago
parent
commit
c32345fcd1
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Engine/source/Verve/VPath/VPath.cpp
  2. 1 1
      Engine/source/Verve/VPath/VPathEditor.cpp

+ 2 - 2
Engine/source/Verve/VPath/VPath.cpp

@@ -2942,7 +2942,7 @@ DefineEngineMethod( VPath, getPathObjectOffset, const char *, (SceneObject *scen
     if (sceneObject == nullptr)
     {
         Con::errorf( "VPath::getPathObjectOffset() - Invalid Target Object." );
-        return false;
+        return "";
     }
 
     // Fetch Object
@@ -3047,7 +3047,7 @@ DefineEngineMethod( VPath, getPathObjectOrientationMode, const char *, (SceneObj
     if (sceneObject == nullptr)
     {
         Con::errorf( "VPath::getPathObjectOrientationMode() - Invalid Target Object." );
-        return false;
+        return "";
     }
 
     // Fetch Object

+ 1 - 1
Engine/source/Verve/VPath/VPathEditor.cpp

@@ -1953,7 +1953,7 @@ DefineEngineMethod( VPathEditor, setNodePosition, void, (Point3F position), (Poi
     object->popNodeEdit();
 }
 
-DefineEngineMethod( VPathEditor, setNodeRotation, void, (AngAxisF aa), (AngAxisF::AngAxisF()), "( pRotation )" )
+DefineEngineMethod( VPathEditor, setNodeRotation, void, (AngAxisF aa), (AngAxisF( Point3F( 0, 0, 1 ), 0)), "( pRotation )" )
 {
     // Valid Selection?
     if ( !object->isValidSelection() )