Blender addons for Dalbaragi engine.
sausagetaste / io_scene_dalbaragi Goto Github PK
View Code? Open in Web Editor NEWBlender addon to export 3D model file for Dalbaragi engine.
License: MIT License
Blender addon to export 3D model file for Dalbaragi engine.
License: MIT License
io_scene_dalbaragi/cpp/b3dsung.cpp
Line 689 in 768b839
io_scene_dalbaragi/cpp/b3dsung.cpp
Line 106 in 768b839
Like following.
class PythonObject {
...
PyObject** out_ptr() {
return &obj_;
}
...
};
io_scene_dalbaragi/cpp/b3dsung.cpp
Line 469 in 768b839
The bpy_mesh_ptr
is borrowed reference, and it may be destroyed while std::async
is using it.
Calling Py_INCREF(bpy_mesh_ptr)
before the line will fix the problem.
On the other hand, Py_DECREF
is not necessary.
Note the second arguemnt true
in the ::PythonObject
constructor.
If a model has a armature but no animations, the exporter will fail to optimize out useless joints.
Saying something like this:
Traceback (most recent call last):
File "C:\Users\woos8\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_dalbaragi\__init__.py", line 529, in execute
model = ModelBuilder(self.optionBool_removeUselessJoints)
File "C:\Users\woos8\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_dalbaragi\__init__.py", line 359, in __init__
jointIndexMap = self.__skeleton.removeJoints(uselesses)
File "C:\Users\woos8\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_dalbaragi\datastruct.py", line 392, in removeJoints
if joint.m_name in jointNames:
TypeError: argument of type 'NoneType' is not iterable
For instance, store mesh name as std::string
instead of mesh object pointer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.