From 0227b18d06b4133c517eced7d59c893ca56c8500 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 31 Jul 2022 13:43:36 +0200 Subject: [PATCH] Codestyle fixes. --- modules/props/prop_instance_merger.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/props/prop_instance_merger.cpp b/modules/props/prop_instance_merger.cpp index b78d26920..00627da60 100644 --- a/modules/props/prop_instance_merger.cpp +++ b/modules/props/prop_instance_merger.cpp @@ -181,8 +181,9 @@ void PropInstanceMerger::meshes_create(const int num) { for (int i = 0; i < num; ++i) { RID mesh_instance_rid = VS::get_singleton()->instance_create(); - if (get_world().is_valid()) + if (get_world().is_valid()) { VS::get_singleton()->instance_set_scenario(mesh_instance_rid, get_world()->get_scenario()); + } RID mesh_rid = VS::get_singleton()->mesh_create(); @@ -411,8 +412,9 @@ void PropInstanceMerger::debug_mesh_send() { debug_mesh_allocate(); debug_mesh_clear(); - if (_debug_mesh_array.size() == 0) + if (_debug_mesh_array.size() == 0) { return; + } SceneTree *st = SceneTree::get_singleton(); @@ -582,8 +584,9 @@ void PropInstanceMerger::_prop_preprocess(Transform transform, const Ref e = prop->get_prop(i); - if (!e.is_valid()) + if (!e.is_valid()) { continue; + } Transform t = transform * e->get_transform(); @@ -592,8 +595,9 @@ void PropInstanceMerger::_prop_preprocess(Transform transform, const Ref p = prop_entry_data->get_prop(); - if (!p.is_valid()) + if (!p.is_valid()) { continue; + } prop_preprocess(t, p); @@ -629,8 +633,9 @@ void PropInstanceMerger::_prop_preprocess(Transform transform, const Ref sc = scene_data->get_scene(); - if (!sc.is_valid()) + if (!sc.is_valid()) { continue; + } Node *n = sc->instance(); add_child(n); @@ -670,8 +675,9 @@ void PropInstanceMerger::_prop_preprocess(Transform transform, const Ref mdr = mesh_data->get_mesh(); - if (!mdr.is_valid()) + if (!mdr.is_valid()) { continue; + } _job->add_mesh(mesh_data, t);