Fix bad call to gd.Project.validateObjectName

This commit is contained in:
Florian Rival
2018-10-07 22:51:07 +01:00
parent 04131e1795
commit c2c961f1d4

View File

@@ -663,7 +663,7 @@ export default class SceneEditor extends React.Component<Props, State> {
const { object, global } = objectWithContext;
const { project, layout } = this.props;
if (!gd.Project.validateObjectName()) {
if (!gd.Project.validateObjectName(newName)) {
done(false);
return;
}