Moritz Brückner
3593092c59
Remove "== True" and replace "== False" with "not"
2020-04-10 19:21:52 +02:00
Moritz Brückner
d4974d1340
Change methods to staticmethods or classmethods if possible
...
+ some small style improvements
2020-04-10 01:56:12 +02:00
Moritz Brückner
3d1f65071c
Fix type hint (again)
2020-04-10 01:26:54 +02:00
Moritz Brückner
7e5342ef8d
Replace Python 3.5 annotations with Python 3.6 annotations
2020-04-10 01:20:08 +02:00
Moritz Brückner
754cb501ca
snake_case for ArmoryExporter member variables
...
Also removed some unused variables
2020-04-10 01:18:10 +02:00
Moritz Brückner
0e4c9f9f18
Improve docstring
2020-04-10 01:03:41 +02:00
Moritz Brückner
5859b11c2e
Fix type annotation
2020-04-10 00:57:54 +02:00
Moritz Brückner
f5b37f99aa
Transform exporter into class (one instance per scene)
...
This has two big advantages:
- One place for variable initialization (and less warnings from pylint etc.)
- No errors due to forgotten cleanups because every scene export now has its own class instance
2020-04-10 00:56:16 +02:00
Moritz Brückner
d7e6ec1a79
Fix write_matrix()
2020-04-10 00:48:49 +02:00
Moritz Brückner
6e3f3dca98
More type annotations
2020-04-10 00:30:16 +02:00
Moritz Brückner
a18c87c392
Make write_matrix static
2020-04-10 00:23:03 +02:00
Moritz Brückner
37e4bc9f85
Some smaller style improvements
2020-04-09 23:53:03 +02:00
Moritz Brückner
4a2ed852b5
Rename struct_identifier + change it to tuple to make it clear it is a constant
2020-04-09 23:52:29 +02:00
Moritz Brückner
6daf501eeb
Move get_bobject_type() into NodeTyp enum
2020-04-09 23:51:33 +02:00
Moritz Brückner
0a23241735
Remove unused constants
2020-04-09 23:50:36 +02:00
Moritz Brückner
8d23458f92
Fix process_bone()
2020-04-09 23:42:52 +02:00
Moritz Brückner
eae4747bce
Replace NodeType[...] with enum
2020-04-09 23:40:18 +02:00
Moritz Brückner
f836e9a1a4
export_object(): pep8 cleanup
2020-04-09 23:25:26 +02:00
Moritz Brückner
6deedd7b35
Add type annotations to export_object()
2020-04-09 23:19:07 +02:00
Moritz Brückner
829aa20f08
Fix camera export when multiple scenes are exported
2020-04-08 23:24:43 +02:00
Valentín Barros
64ed9d8d9e
Fixed memory problem in ArmoryExporter.execute
[ fixes #1604 ]
...
The Blender crash referenced in the issue happened always
when starting 2nd iteration of the loop in line 2041. I'm not
really sure, but I bet it had to do with
`export_object` modifying `bpy.context.collection.objects`
(line 818), wich in turn could invalidate the reference
obtained in line 1926, if I understand a bit of Blender
internals — wich I didn't some days ago, so this could be
completely wrong.
It no longer happens with this change.
2020-03-21 11:07:58 +01:00
luboslenco
620e15db8e
Fix wrd access
2020-03-07 15:00:51 +01:00
Moritz Brückner
fe367518cc
Merge branch 'master' into console-output
2020-03-07 00:04:30 +01:00
Philip Michel Duarte
4adbc3cbb0
instanced autobake done
2020-03-05 13:40:15 -03:00
Philip Michel Duarte
4e633c736a
pending stuff
2020-03-04 19:42:38 -03:00
philip
57a052b25d
towards instanced autobake
2020-03-04 17:34:21 -03:00
Philip Michel Duarte
02bc76f9d5
same-file collection instance bug fixed
2020-03-03 23:38:37 -03:00
Moritz Brückner
086810849e
De-clutter console output (new "Verbose Output" switch)
2020-03-04 00:14:14 +01:00
Lubos Lenco
f3bffa27e5
Merge pull request #1595 from MoritzBrueckner/fix-object-names
...
Exporter: better handling of duplicate object names
2020-03-03 22:10:33 +01:00
Moritz Brückner
6f906c5863
Exporter: better handling of duplicate object names
2020-03-03 21:34:19 +01:00
N8n5h
06af6d30d4
Update exporter to fit expected vertex array data
2020-03-03 03:07:56 -03:00
Lubos Lenco
75ca3aa44b
Merge pull request #1592 from philipmduarte/autobake
...
Action autobaking
2020-03-02 19:20:24 +01:00
Philip Michel Duarte
8921afd155
autobake done
2020-03-02 11:03:42 -03:00
N8n5h
c04dbe4993
Fix Vertex Color and Tangent not exporting
...
Applied the same fix that is used for uvs, since it seems to solve the issue of not updating correctly for exporting of materials too.
Also added support for the Vertex Color node.
2020-03-02 02:04:54 -03:00
Moritz Brückner
141e7e71df
Export asset name for object trait properties
2020-01-27 17:13:43 +01:00
Moritz Brückner
e7d631f9da
Support object prop type
2020-01-07 21:09:39 +01:00
Moritz Brückner
049911504c
Refactor trait prop system and support different prop types
2020-01-07 12:35:38 +01:00
Moritz Brückner
3615566b0e
Export collection instance offset and move coll. export into own method
2019-12-27 15:40:40 +01:00
Moritz Brückner
a17384e318
exporter.py: Some style improvements and added some docstrings
2019-12-27 15:39:20 +01:00
Lubos Lenco
d6f32d1bc5
Merge pull request #1513 from MoritzBrueckner/themes
...
Load themes from canvas
2019-12-14 13:33:13 +01:00
Moritz Brückner
3d59e6b4d6
Fix export error when no canvas is used at all
2019-12-13 19:21:59 +01:00
Lubos Lenco
24ec5cf79b
Merge pull request #1507 from QuantumCoderQC/master
...
Moved kinematic and static flags from Bt.hx to RigidBody.hx
2019-12-08 10:04:49 +01:00
QuantumCoderQC
8c80b94b4a
Moved kinematic and static flags from Bt.hx to RigidBody.hx
2019-12-07 21:41:08 +01:00
Moritz Brückner
b4bca6f364
Export themes for canvas
2019-12-06 21:41:19 +01:00
N8n5h
4216d327a3
Fix for faulty "missing uv maps"
...
Ask for export_uvs to the original object instead of the evaluated copy. Reason is, it seems the dependency graph fails to update
whenever custom properties are set. So for that I think asking the original object in this case could be sufficient to fix it.
The same could be applied to the other functions that are in that chunk of code.
2019-12-05 17:17:51 -03:00
N8n5h
b1a25548a9
fix export with a 'zoo collection'
...
Add a temporary collection to the scene that links all the foreign objects meshes and collections with meshes to the current scene, have the dependency graph see it and then destroy it.
2019-12-02 09:01:46 -03:00
QuantumCoderQC
5099580885
Implemented Kinematic and Static flags for better control. Mass of Animated(Kinematic) and Static objects will be set to zero. Implemented btMotionState for kinematic rigid bodies. And btSetWorldTransform for Dynamic and static rigid bodies. Kinematic rigid bodies can now be fully contolled through animation timeline inside blender.
2019-12-01 00:59:16 +01:00
luboslenco
b17fe028b6
Re-apply ced8cd8
2019-10-30 15:33:14 +01:00
QuantumCoderQC
8beb8ef061
Implemented Physics constraints: Generic, Generic-Spring, Slider, Piston and Hinge. Point constraint now uses Bullet Physics btPoint2Point constraint. Hinge constraint now obeys orientation inputs. Generic constraint can now be fully configured within Blender. Constraint behaviour matches that of Blender physics constraints.
2019-10-29 23:12:40 +01:00
luboslenco
ced8cd845f
Fix Principled BSDF node lookup for empty material
2019-10-25 14:20:22 +02:00
N8n5h
5184794a0e
nav update 3
...
added support for modifiers for navigation meshes, removed the need to restart blender when creating visualization
2019-10-13 19:46:22 -03:00
Yannik Boettcher
25fe284f75
change the exporter to use blenders triangle loops
2019-09-23 12:11:48 +02:00
marketgarden
c9911ad25f
add collision-filter-mask feature
2019-09-10 23:09:44 +02:00
luboslenco
24867658f1
Deprecated cleanup
2019-08-24 11:50:27 +02:00
MoritzBrueckner
d2c83e47f2
Remove not longer required variables
2019-07-19 22:44:22 +02:00
MoritzBrueckner
455151d102
Simplify animation export and support for baked FCurves & modifiers
2019-07-19 22:28:11 +02:00
MoritzBrueckner
85c0d2ca28
Correct Python syntax
2019-07-18 21:51:25 +02:00
MoritzBrueckner
f040ac18eb
Simplify keyframe export methods
2019-06-25 14:08:42 +02:00
MoritzBrueckner
ddd9eaf88a
Reorder imports and remove unused ones
2019-06-25 13:54:30 +02:00
MoritzBrueckner
e176ad7320
Python docstring for module
2019-06-25 13:53:57 +02:00
MoritzBrueckner
6a29442ceb
Fix classify_animation_curve() in blender\arm\exporter.py
2019-06-24 11:30:24 +02:00
MoritzBrueckner
15660ab5f3
Cleanup whitespace
2019-06-23 22:52:41 +02:00
MoritzBrueckner
f10a8caee7
Add support for fcurves with interpolation set to constant
2019-06-23 22:52:30 +02:00
unknown
8bccdd9879
lz4 compress stubs
2019-06-22 11:29:05 +02:00
luboslenco
9be7287c51
More b28 changes
2019-06-03 11:29:16 +02:00
luboslenco
297a7b8281
b28 fixes
2019-05-20 14:32:48 +02:00
luboslenco
2303bada3a
Add single-data-file exporter option
2019-05-14 11:43:41 +02:00
unknown
4ecec19ad3
Force gpu skinning
2019-04-06 14:13:38 +02:00
luboslenco
fc2635e673
Calibrate area light
2019-02-27 21:31:21 +01:00
luboslenco
d6f17ece69
Match empty material roughness
2019-02-12 13:13:27 +01:00
luboslenco
24b2cc23cd
Cube shadow fixes
2019-02-12 12:39:41 +01:00
luboslenco
92fa1b4fb3
No pow for vertex colors
2019-02-11 11:12:41 +01:00
luboslenco
e0e4bf303f
Send operators to Krom
2019-02-10 11:47:42 +01:00
luboslenco
b56273ce6b
Cleanup light export, adjust area light energy
2019-02-09 09:41:01 +01:00
luboslenco
b248eae2fb
Show trait users as collections
2019-02-05 12:59:34 +01:00
luboslenco
7b7260d647
Update volumetric
2019-01-28 11:28:21 +01:00
luboslenco
4172e0a2c6
Fix LTC shadow
2019-01-27 23:48:54 +01:00
luboslenco
59f4876055
Fix vertex pack for softbody
2019-01-24 14:54:28 +01:00
luboslenco
03652e5258
Fix key check
2019-01-23 12:17:02 +01:00
luboslenco
326bf1d90f
Improve movie handling
2019-01-23 12:07:44 +01:00
luboslenco
a7eff66ab9
Fix groups
2019-01-22 13:52:37 +01:00
luboslenco
c81d4949ca
No need for material tilesheet flag
2019-01-22 12:38:47 +01:00
luboslenco
4de8ffec1b
Take field weights into account
2019-01-21 20:56:03 +01:00
luboslenco
169bf4878b
Clamp cascade size
2019-01-21 17:59:25 +01:00
luboslenco
3e645a95b4
Merge terrain stream
2019-01-17 21:34:38 +01:00
luboslenco
f34430e02a
Scene format fix
2019-01-15 13:51:52 +01:00
luboslenco
e15b213666
Softbody compile fix
2019-01-10 11:59:49 +01:00
luboslenco
ab5ec55b99
Improve particles
2019-01-10 10:53:05 +01:00
luboslenco
9c6c4bb719
Fix multi-uvs
2019-01-09 15:05:15 +01:00
luboslenco
38548790bd
Collection fixes
2019-01-08 15:46:24 +01:00
luboslenco
b2db6b86da
Restore vertex colors
2019-01-07 10:42:45 +01:00
Lubos Lenco
43e5badff3
Merge pull request #1060 from katharostech/issue_logic-tree-selector
...
Fix Node Trait Selection Issue
2019-01-04 15:18:03 +01:00
unknown
721e39d5e6
Fix instancing unpack
2019-01-02 15:33:30 +01:00
unknown
30ddc71ab8
Use use_shadow toggle
2018-12-31 16:58:00 +01:00
unknown
6a5c9cc10a
Fix displacement compile
2018-12-30 00:01:34 +01:00
unknown
e760a781fd
Faster exporter
2018-12-29 16:34:04 +01:00
unknown
de03871e00
Mesh format fix
2018-12-24 15:48:41 +01:00
Zicklag
3ab888c0a5
Fix Node Trait Selection Issue
...
fixes #1059
2018-12-21 16:48:02 -06:00
luboslenco
cda8276477
Exporter fixes
2018-12-20 22:37:39 +01:00
luboslenco
a8c86b373f
Update bullet bindings
2018-12-20 18:04:49 +01:00