Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender_nif_plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
blender_nif_plugin
Commits
3eb7b318
Commit
3eb7b318
authored
11 years ago
by
Ghost
Browse files
Options
Downloads
Patches
Plain Diff
Fix for an introduced bug caused while fixing the double scene root
issue. also some changes to the longname custom property.
parent
319ab1cd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_scene_nif/nif_import.py
+2
-2
2 additions, 2 deletions
io_scene_nif/nif_import.py
io_scene_nif/objectsys/object_export.py
+1
-1
1 addition, 1 deletion
io_scene_nif/objectsys/object_export.py
with
3 additions
and
3 deletions
io_scene_nif/nif_import.py
+
2
−
2
View file @
3eb7b318
...
...
@@ -706,7 +706,7 @@ class NifImport(NifCommon):
shortname
=
self
.
import_name
(
niBlock
)
b_empty
=
bpy
.
data
.
objects
.
new
(
shortname
,
None
)
# TODO: - is longname needed???
# TODO: - is longname needed???
Yes it is needed, it resets the original name on export
b_empty
.
niftools
.
longname
=
niBlock
.
name
.
decode
()
self
.
context
.
scene
.
objects
.
link
(
b_empty
)
...
...
@@ -752,7 +752,7 @@ class NifImport(NifCommon):
self
.
context
.
scene
.
objects
.
link
(
b_obj
)
# save original name as object property, for export
if
b_name
!=
niBlock
.
name
.
decode
():
b_obj
[
'
Nif N
ame
'
]
=
niBlock
.
name
.
decode
()
b_obj
.
niftools
.
longn
ame
=
niBlock
.
name
.
decode
()
# Mesh hidden flag
if
niBlock
.
flags
&
1
==
1
:
...
...
This diff is collapsed.
Click to expand it.
io_scene_nif/objectsys/object_export.py
+
1
−
1
View file @
3eb7b318
...
...
@@ -143,7 +143,7 @@ class ObjectHelper():
b_obj_ipo
=
b_obj
.
animation_data
# get animation data
b_obj_children
=
b_obj
.
children
node_name
=
b_obj
.
name
elif
(
b_obj
.
name
!=
parent_block
.
name
.
decode
()):
elif
(
b_obj
.
name
!=
parent_block
.
name
.
decode
())
and
(
b_obj
.
parent
!=
None
)
:
# -> empty, b_mesh, or armature
b_obj_type
=
b_obj
.
type
assert
(
b_obj_type
in
[
'
EMPTY
'
,
'
MESH
'
,
'
ARMATURE
'
])
# debug
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment