Browse Source

Fix method name

VardenTheOne 5 years ago
parent
commit
a56bfcad1f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tutorials/plugins/editor/spatial_gizmos.rst

+ 3 - 3
tutorials/plugins/editor/spatial_gizmos.rst

@@ -82,7 +82,7 @@ or all the handle related ones.
 
 
     func _init():
     func _init():
         create_material("main", Color(1, 0, 0))
         create_material("main", Color(1, 0, 0))
-        create_handles_material("handles")
+        create_handle_material("handles")
 
 
     func redraw(gizmo):
     func redraw(gizmo):
         gizmo.clear()
         gizmo.clear()
@@ -119,7 +119,7 @@ So the final plugin would look somewhat like this:
 
 
     func _init():
     func _init():
         create_material("main", Color(1,0,0))
         create_material("main", Color(1,0,0))
-        create_handles_material("handles")
+        create_handle_material("handles")
 
 
     func has_gizmo(spatial):
     func has_gizmo(spatial):
         return spatial is MyCustomSpatial
         return spatial is MyCustomSpatial
@@ -170,7 +170,7 @@ for the Spatial nodes we want to target.
 
 
     func _init():
     func _init():
         create_material("main", Color(1, 0, 0))
         create_material("main", Color(1, 0, 0))
-        create_handles_material("handles")
+        create_handle_material("handles")
 
 
     func create_gizmo(spatial):
     func create_gizmo(spatial):
         if spatial is MyCustomSpatial:
         if spatial is MyCustomSpatial: