Coder Social home page Coder Social logo

io_scene_dalbaragi's Introduction

io_scene_dalbaragi

Blender addons for Dalbaragi engine.

io_scene_dalbaragi's People

Contributors

sausagetaste avatar

Watchers

 avatar  avatar

Forkers

blendercn-org

io_scene_dalbaragi's Issues

Must call `Py_INCREF` on `bpy_mesh_ptr`

auto bpy_mesh = ::PythonObject{bpy_mesh_ptr, true};

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.

Crashes when exporting an model with no animation upon removing useless joints.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.