You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
properly set emitting when particles restart
This commit is contained in:
@@ -321,6 +321,11 @@ void ParticlesEditor::_menu_option(int p_option) {
|
||||
ur->commit_action();
|
||||
|
||||
} break;
|
||||
case MENU_OPTION_RESTART: {
|
||||
|
||||
node->restart();
|
||||
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -471,6 +476,8 @@ ParticlesEditor::ParticlesEditor() {
|
||||
options->get_popup()->add_item(TTR("Create Emission Points From Node"), MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE);
|
||||
options->get_popup()->add_separator();
|
||||
options->get_popup()->add_item(TTR("Convert to CPUParticles"), MENU_OPTION_CONVERT_TO_CPU_PARTICLES);
|
||||
options->get_popup()->add_separator();
|
||||
options->get_popup()->add_item(TTR("Restart"), MENU_OPTION_RESTART);
|
||||
|
||||
options->get_popup()->connect("id_pressed", this, "_menu_option");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user