Removed variables and #include in EditorSceneImporterAssimp::import_scene that became unused after the recent commit ec1bf96(#39363).
(cherry picked from commit 365c35f30e
)
This commit is contained in:
parent
f1ca218ce7
commit
56da70f2e8
|
@ -44,7 +44,6 @@
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
#include <assimp/Importer.hpp>
|
#include <assimp/Importer.hpp>
|
||||||
#include <assimp/LogStream.hpp>
|
#include <assimp/LogStream.hpp>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
// move into assimp
|
// move into assimp
|
||||||
aiBone *get_bone_by_name(const aiScene *scene, aiString bone_name) {
|
aiBone *get_bone_by_name(const aiScene *scene, aiString bone_name) {
|
||||||
|
@ -104,8 +103,6 @@ void EditorSceneImporterAssimp::_bind_methods() {
|
||||||
Node *EditorSceneImporterAssimp::import_scene(const String &p_path, uint32_t p_flags, int p_bake_fps,
|
Node *EditorSceneImporterAssimp::import_scene(const String &p_path, uint32_t p_flags, int p_bake_fps,
|
||||||
List<String> *r_missing_deps, Error *r_err) {
|
List<String> *r_missing_deps, Error *r_err) {
|
||||||
Assimp::Importer importer;
|
Assimp::Importer importer;
|
||||||
std::wstring w_path = ProjectSettings::get_singleton()->globalize_path(p_path).c_str();
|
|
||||||
std::string s_path(w_path.begin(), w_path.end());
|
|
||||||
importer.SetPropertyBool(AI_CONFIG_PP_FD_REMOVE, true);
|
importer.SetPropertyBool(AI_CONFIG_PP_FD_REMOVE, true);
|
||||||
// Cannot remove pivot points because the static mesh will be in the wrong place
|
// Cannot remove pivot points because the static mesh will be in the wrong place
|
||||||
importer.SetPropertyBool(AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS, false);
|
importer.SetPropertyBool(AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS, false);
|
||||||
|
|
Loading…
Reference in New Issue