diff options
| author | Wilson E. Alvarez | 2017-08-21 15:15:36 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-21 15:15:55 -0400 |
| commit | 738d2ab96997faa1e13b91e38cf8a0000d829f70 (patch) | |
| tree | e33258663017edb924695e68224ba836e5fc9f08 /editor/import | |
| parent | 4717d37bfa867d8cdcd4805967324978da6701b7 (diff) | |
| download | godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.gz godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.zst godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.zip | |
Removed unnecessary assignments
Diffstat (limited to 'editor/import')
| -rw-r--r-- | editor/import/editor_import_collada.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp index a75147a3a..b3ccb5097 100644 --- a/editor/import/editor_import_collada.cpp +++ b/editor/import/editor_import_collada.cpp @@ -1584,14 +1584,12 @@ Error ColladaImport::_create_resources(Collada::Node *p_node) { apply_xform = Transform(); } - Collada::SkinControllerData::Source *joint_src = NULL; - ERR_FAIL_COND_V(!skin->weights.sources.has("JOINT"), ERR_INVALID_DATA); String joint_id = skin->weights.sources["JOINT"].source; ERR_FAIL_COND_V(!skin->sources.has(joint_id), ERR_INVALID_DATA); - joint_src = &skin->sources[joint_id]; + Collada::SkinControllerData::Source *joint_src = &skin->sources[joint_id]; bone_remap.resize(joint_src->sarray.size()); @@ -2317,7 +2315,6 @@ Ref<Animation> EditorSceneImporterCollada::import_animation(const String &p_path if (state.animations.size() == 0) return Ref<Animation>(); Ref<Animation> anim = state.animations[0]; - anim = state.animations[0]; print_line("Anim Load OK"); String base = p_path.get_basename().to_lower(); if (p_flags & IMPORT_ANIMATION_DETECT_LOOP) { |
