Skip to content

Commit

Permalink
initial qbo format importer work
Browse files Browse the repository at this point in the history
get animations to import

fix animation name replacement logic for scene resource imports given "/" prefix scheme from "get_animation_list"

( cherry-pick from 0fba504 )

still debugging animations

Apply code formatting.

Remove unused.

Implement QBODocument.

Move into modules.
  • Loading branch information
PierceLBrooks authored and fire committed Feb 6, 2025
1 parent eee39f0 commit 53d0ee8
Show file tree
Hide file tree
Showing 8 changed files with 536 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/gltf/gltf_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
class GLTFState : public Resource {
GDCLASS(GLTFState, Resource);
friend class GLTFDocument;
friend class QBODocument;
friend class GLTFNode;

protected:
Expand Down
30 changes: 30 additions & 0 deletions modules/qbo/SCsub
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env python
from misc.utility.scons_hints import *

Import("env")
Import("env_modules")

env_fbx = env_modules.Clone()

# Thirdparty source files

thirdparty_obj = []

env_thirdparty = env_fbx.Clone()
env_thirdparty.disable_warnings()

thirdparty_sources = []

env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
env.modules_sources += thirdparty_obj

# Godot source files

module_obj = []

env_fbx.add_source_files(module_obj, "*.cpp")

env.modules_sources += module_obj

# Needed to force rebuilding the module files when the thirdparty library is updated.
env.Depends(module_obj, thirdparty_obj)
17 changes: 17 additions & 0 deletions modules/qbo/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
def can_build(env, platform):
env.module_add_dependencies("fbx", ["gltf"])
return not env["disable_3d"]


def configure(env):
pass


def get_doc_classes():
return [
"QBODocument",
]


def get_doc_path():
return "doc_classes"
9 changes: 9 additions & 0 deletions modules/qbo/doc_classes/QBODocument.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="QBODocument" inherits="GLTFDocument" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
</class>
Loading

0 comments on commit 53d0ee8

Please sign in to comment.