Procházet zdrojové kódy

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

Vladimir Savin před 5 roky
rodič
revize
8a3d358a87
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.
             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)));
             }
         }
     }