diff --git a/sdk/jme3-templates/src/com/jme3/gde/templates/files/Control.template b/sdk/jme3-templates/src/com/jme3/gde/templates/files/Control.template index 7a48a7df9..49faab2ec 100644 --- a/sdk/jme3-templates/src/com/jme3/gde/templates/files/Control.template +++ b/sdk/jme3-templates/src/com/jme3/gde/templates/files/Control.template @@ -40,7 +40,7 @@ public class ${name} extends AbstractControl{ } public Control cloneForSpatial(Spatial spatial) { - Control control = new ${name}(); + ${name} control = new ${name}(); //TODO: copy parameters to new Control control.setSpatial(spatial); return control;