mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix bad call to gd.Project.validateObjectName
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user