Fix visibility filtering options for .blend imports
This commit is contained in:
parent
e69b7083d4
commit
3086b1b79d
2 changed files with 3 additions and 3 deletions
|
@ -261,7 +261,7 @@ void EditorSceneFormatImporterBlend::get_import_options(const String &p_path, Li
|
||||||
#define ADD_OPTION_ENUM(PATH, ENUM_HINT, VALUE) \
|
#define ADD_OPTION_ENUM(PATH, ENUM_HINT, VALUE) \
|
||||||
r_options->push_back(ResourceImporter::ImportOption(PropertyInfo(Variant::INT, SNAME(PATH), PROPERTY_HINT_ENUM, ENUM_HINT), VALUE));
|
r_options->push_back(ResourceImporter::ImportOption(PropertyInfo(Variant::INT, SNAME(PATH), PROPERTY_HINT_ENUM, ENUM_HINT), VALUE));
|
||||||
|
|
||||||
ADD_OPTION_ENUM("blender/nodes/visible", "Visible Only,Renderable,All", BLEND_VISIBLE_ALL);
|
ADD_OPTION_ENUM("blender/nodes/visible", "All,Visible Only,Renderable", BLEND_VISIBLE_ALL);
|
||||||
ADD_OPTION_BOOL("blender/nodes/punctual_lights", true);
|
ADD_OPTION_BOOL("blender/nodes/punctual_lights", true);
|
||||||
ADD_OPTION_BOOL("blender/nodes/cameras", true);
|
ADD_OPTION_BOOL("blender/nodes/cameras", true);
|
||||||
ADD_OPTION_BOOL("blender/nodes/custom_properties", true);
|
ADD_OPTION_BOOL("blender/nodes/custom_properties", true);
|
||||||
|
|
|
@ -45,9 +45,9 @@ class EditorSceneFormatImporterBlend : public EditorSceneFormatImporter {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum {
|
enum {
|
||||||
|
BLEND_VISIBLE_ALL,
|
||||||
BLEND_VISIBLE_VISIBLE_ONLY,
|
BLEND_VISIBLE_VISIBLE_ONLY,
|
||||||
BLEND_VISIBLE_RENDERABLE,
|
BLEND_VISIBLE_RENDERABLE
|
||||||
BLEND_VISIBLE_ALL
|
|
||||||
};
|
};
|
||||||
enum {
|
enum {
|
||||||
BLEND_BONE_INFLUENCES_NONE,
|
BLEND_BONE_INFLUENCES_NONE,
|
||||||
|
|
Loading…
Reference in a new issue