Age | Commit message (Collapse) | Author |
|
Identity checks should never be used with strings, it may fail based on
Python's interning logic.
|
|
Differential Revision: https://developer.blender.org/D3746
|
|
|
|
|
|
Add-ons are no API, and are not expected to be used outside of
themselves (i.e. add-ons whall not depend on other add-ons). So no
reason to keep compatibility with previous behavior of import image a
splanes operator (especially since name had to be changed anyway).
Also simplified register/unregister code, exceptions are only to be used
to detect and handle errors, not to handle some valid cases.
|
|
- Contexts already return copy of themselves as dict with their copy() method.
- Do not store a vector in Enum id to then parse it into real vector,
just use sensible enum ids and a mapping to matching vectors...
- Since we don't use cutom handling of extensions anymore (did we really
want to get rid of this btw? :/ ), at least let's also get rid of hack
they needed, and just use standard 'batch' handling of file types.
There are probably more to cleanup, also not that happy with some
changes here (like the removal of filtering by exact extension/image
type), but this will do for now.
|
|
|
|
engines.
This script has to generate shaders for imported images' planes, so it can only work
with known engines. 'Fix' is only adding an explicit error message when an unknown
render engine is found, instead of failing silently.
|
|
material nodes system
when enabling "Use Alpha", for Cycles.
- Removed two options from Cycles Materal settings during import
("Diffuse & Transparent", "Emission & Transparent").
- Nodetree creation stays the same, but transparent BSDF (along the other needed nodes)
is now added when Import Option "Use Alpha" is checked.
Reviewers: testscreenings, mont29
Reviewed By: mont29
Projects: #addons
Differential Revision: https://developer.blender.org/D1437
|
|
importing.
There is now an option to force reloading existing images.
But main bug was elsewhere - that addon would always create new image datablocks, and yet
use same (already existing) texture afterwards, that was rather bad, fixed using new
'check_existing' option of load_image helper just added to master.
|
|
at once.
Also, name meshes from image names too.
|
|
|
|
with Cycles engine.
UseAlpha & co are image settings, they are not bound to any specific render engine.
To be backported to final 2.74.
|
|
* Fix setting frame_duration of image users (using op here is overkill, too).
* Cycles is now perfectly able to use videos as textures!
* Fix Cycles texures/images not getting fully set from op parameters.
|
|
|
|
minor other edits
|
|
materials).
|
|
Note: import gimp image also would need it, but it would anyway need a good cleanup (handling of paths is ugly), so did not bothered with it for now.
|
|
|
|
|
|
*Use absolute as default size mode (dpi with BU is not that nice).
*Use default plane primitive instead of creating our own square (this way we can be sure things like verts order will always match those of default plane!), request from Christopher Barrett in tracker.
|
|
Iggy B [rexxxus] for reporting the bug).
|
|
blender code (thanks to meta-androcto for the report on IRC).
|
|
Never use a generator as enum's "items" value!
|
|
make addons blender versions consistent
|
|
(absolute, to directly specify the result height, and dpi or dpbu [dots per Blender Unit], to use image definition). Based on an idea and code from mat ali, thanks!
Also fixed correct use of overriden context (not really a bug, but printed annoying warning messages in the console).
|
|
"import.image_to_plane" to "import_image.to_plane" (import is a keyword in python...). Thanks to P. Staples in tracker!
|
|
|
|
*Mostly, makes much more intensive use of Blender's FileSelector, to only show relevant files, and allow any pict/video files when "all" is selected (previously e.g. importing mkv's was impossible!).
*Style cleaning/refactoring (esp. do not use 'self' for anythin else than a method's object, so made most func member of op class)...
|
|
finished
|
|
|
|
|
|
|
|
Remove module add_utils.py which fully duplicates functions
from trunk's object_utils.py module and switch all dependent
addons to use module from trunk.
|
|
expanding, normalizing first, 2) non-utf8 paths made the script error out, 3) paths were exported with absolute paths by default, had to remember to make them relative which was annoying.
|
|
|
|
|
|
|
|
(reported by Nathan Letwory over IRC)
|
|
|
|
Plus a few styling enhancements.
[[Split portion of a mixed commit.]]
|
|
* You only have to do layout.prop if you want 1 property, no need for row then!
* Use col, row, sub as variable names, not colsub, rowsub, row2 etc please.
* Povray Addon: Still used a lot of splits, you need no split when you only have 1 column!
|
|
|
|
|
|
to FBX.
|
|
|
|
addon next).
|
|
update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data.
|
|
|
|
|