Browse Source

Multimesh C#: Use `Basis.Identity` instead of default constructor (#3624)

Vladimir Savin 5 years ago
parent
commit
8a3d358a87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/optimization/using_multimesh.rst

+ 1 - 1
tutorials/optimization/using_multimesh.rst

@@ -91,7 +91,7 @@ efficient for millions of objects, but for a few thousands, GDScript should be f
             // Set the transform of the instances.
             // Set the transform of the instances.
             for (int i = 0; i < multimesh.VisibleInstanceCount; i++)
             for (int i = 0; i < multimesh.VisibleInstanceCount; i++)
             {
             {
-                multimesh.SetInstanceTransform(i, new Transform(new Basis(), new Vector3(i * 20, 0, 0)));
+                multimesh.SetInstanceTransform(i, new Transform(Basis.Identity, new Vector3(i * 20, 0, 0)));
             }
             }
         }
         }
     }
     }