mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge commit godotengine/godot@5dd76968d8
This commit is contained in:
@@ -130,11 +130,11 @@
|
||||
If [member image_format] is a lossy image format, this determines the lossy quality of the image. On a range of [code]0.0[/code] to [code]1.0[/code], where [code]0.0[/code] is the lowest quality and [code]1.0[/code] is the highest quality. A lossy quality of [code]1.0[/code] is not the same as lossless.
|
||||
</member>
|
||||
<member name="root_node_mode" type="int" setter="set_root_node_mode" getter="get_root_node_mode" enum="GLTFDocument.RootNodeMode" default="0">
|
||||
How to process the root node during export. See [enum RootNodeMode] for details. The default and recommended value is [constant ROOT_NODE_MODE_SINGLE_ROOT].
|
||||
How to process the root node during export. The default and recommended value is [constant ROOT_NODE_MODE_SINGLE_ROOT].
|
||||
[b]Note:[/b] Regardless of how the glTF file is exported, when importing, the root node type and name can be overridden in the scene import settings tab.
|
||||
</member>
|
||||
<member name="visibility_mode" type="int" setter="set_visibility_mode" getter="get_visibility_mode" enum="GLTFDocument.VisibilityMode" default="0">
|
||||
How to deal with node visibility during export. This setting does nothing if all nodes are visible. See [enum VisibilityMode] for details. The default and recommended value is [constant VISIBILITY_MODE_INCLUDE_REQUIRED], which uses the [code]KHR_node_visibility[/code] extension.
|
||||
How to deal with node visibility during export. This setting does nothing if all nodes are visible. The default and recommended value is [constant VISIBILITY_MODE_INCLUDE_REQUIRED], which uses the [code]KHR_node_visibility[/code] extension.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
In most cases [member node_paths] will only have one item, but in some cases a single glTF JSON pointer will map to multiple Redot properties. For example, a [GLTFCamera] or [GLTFLight] used on multiple glTF nodes will be represented by multiple Redot nodes.
|
||||
</member>
|
||||
<member name="object_model_type" type="int" setter="set_object_model_type" getter="get_object_model_type" enum="GLTFObjectModelProperty.GLTFObjectModelType" default="0">
|
||||
The type of data stored in the glTF file as defined by the object model. This is a superset of the available accessor types, and determines the accessor type. See [enum GLTFObjectModelType] for possible values.
|
||||
The type of data stored in the glTF file as defined by the object model. This is a superset of the available accessor types, and determines the accessor type.
|
||||
</member>
|
||||
<member name="variant_type" type="int" setter="set_variant_type" getter="get_variant_type" enum="Variant.Type" default="0">
|
||||
The type of data stored in the Redot property. This is the type of the property that the [member node_paths] point to.
|
||||
|
||||
@@ -5964,6 +5964,9 @@ void GLTFDocument::_convert_scene_node(Ref<GLTFState> p_state, Node *p_current,
|
||||
} else if (Object::cast_to<AnimationPlayer>(p_current)) {
|
||||
AnimationPlayer *animation_player = Object::cast_to<AnimationPlayer>(p_current);
|
||||
p_state->animation_players.push_back(animation_player);
|
||||
if (animation_player->get_child_count() == 0) {
|
||||
gltf_node->set_parent(-2); // Don't export AnimationPlayer nodes as glTF nodes (unless they have children).
|
||||
}
|
||||
}
|
||||
for (Ref<GLTFDocumentExtension> ext : document_extensions) {
|
||||
ERR_CONTINUE(ext.is_null());
|
||||
|
||||
@@ -63,7 +63,7 @@ static void _editor_init() {
|
||||
|
||||
String blender_path = EDITOR_GET("filesystem/import/blender/blender_path");
|
||||
if (blender_path.is_empty() && EditorSettings::get_singleton()->has_setting("filesystem/import/blender/blender3_path")) {
|
||||
blender_path = EditorSettings::get_singleton()->get("filesystem/import/blender/blender3_path");
|
||||
blender_path = EDITOR_GET("filesystem/import/blender/blender3_path");
|
||||
|
||||
if (!blender_path.is_empty()) {
|
||||
#if defined(MACOS_ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user