Age | Commit message (Collapse) | Author |
|
paste errors), also remove BKE_script.h
|
|
wasn't checking the length and could crash, eg:
mesh.polygons[0].vertices = (10,)
|
|
|
|
but no loops.layers.uv
|
|
|
|
(which may not have the functions defined).
gave odd behavior of including members in __dir__ that couldn't getattr()
|
|
|
|
|
|
- script execution is off by default
- if a blend file attempts to execute a script
this shows a message in the header with the action
that was suppressed (script/driver/game-autostart) and 2 buttons to either reload the file trusted, or to ignore the message.
- the file selector will always default to use the trust setting in the user preferences,
but reloading an open file will keep using the current setting (whatever was set before or set on the command-line).
- added SCons setting WITH_BF_PYTHON_SECURITY, this sets the default state for the user prefereces not to trust blend files on load.
... this option was in CMake before, but always off, now its enabled by default for SCons and CMake, and forced on in CMake for now.
|
|
|
|
add arguments to calculate normals when converting to bmesh:
BM_mesh_bm_from_me, DM_to_bmesh
This gives some speedup to undo (which didnt need to re-calculate vertex normals), and array modifier which doesnt need to calculate face normals at all
|
|
remove MEM_sys_types.h which was a duplicate.
|
|
|
|
include conflicts later on.
|
|
|
|
* Possible fix for Fluid threads UI not being shown with cmake builds.
|
|
|
|
|
|
down, this time by the operator properties getting converted to a string for
display in the info window.
With 1000+ stroke points this can get slow, and takes up too much space anyway,
so now it's (somewhat arbitrarily) limited to printing only 10 points.
|
|
Campell, thx.
|
|
|
|
|
|
was due to slow implementation of slice operation for things like mesh uv data.
Made that faster now for cases where the internal storage is an array.
|
|
(avoid doing it inline).
|
|
was renamed fairly recently but other similar iterators not negated
like this, would prefer to keep it as it was
|
|
|
|
|
|
|
|
really only be done via customdata layer support.
|
|
accessing a bmesh from python would reallocate all customdata layers.
add an assert to BM_data_layer_free(), when its called unnecessarily since its reallocating all layers.
|
|
* Display Simulation threads only, when built with OpenMP.
|
|
previous commit was incorrect, the face flipping depended on the orientation of the curve.
fix by passing the bevel direction to the fill function so we can have a reliable front/back.
This also gives some speedup for all curve filling since we can avoid calculating the normal since its already known.
|
|
in edit mode and changing shape.
remove the option to skip hidden faces in BM_mesh_normals_update, use openmp to speedup recalculation for high poly meshes.
|
|
- enable site-packages for bundled python distrobution, py3.2 had a problem where it would try to parse headers we didnt include, but its resolved now.
- workaround for glitch I was having on arch-linux where lib64 would be be used for the bundled python directory when it was just a symlink.
|
|
Most of the places which relied on RNA_path_resolve() did so believing that if
it returned true, that it had found a valid property, and that the returned
pointer+property combination would be what the path referred to. However, it
turns out that if the property at the end of the path turns out to be a
"pointer" property (e.g. "data" for Object.data), this would automatically
become the pointer part, while the prop part would be set to null. Hence, if a
user accidentally (or otherwise) specifies a path for the single-property driver
variable type like this, then Blender would crash.
This commit introduces two convenience functions - RNA_path_resolve_property()
and RNA_path_resolve_property_full() - which mirror/wrap the existing
RNA_path_resolve() functions. The only difference though is that these include a
check to ensure that what was found from resolving the path was in fact a
property (they only return true iff this is the case), and make it explicitly
clear in the name that this is what they will do so that there's no further
confusion. It is possible to do without these wrapper functions by doing these
checks inline, but the few cases that had been patched already were pretty
hideous looking specimens. Using these just make it clearer and simpler for all.
I've also beefed up the docs on these a bit, and changed these to using bools.
|
|
|
|
MATHUTILS_TOT_CB and reduce float->double conversions.
|
|
done/invalid.
|
|
are needed.
|
|
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
|
|
bpy.props.EnumProperty.
|
|
- add vertex option to BM_face_interp_from_face, also expose via python.
|
|
you can specify precision=0 for this, and use -1 for the default 2.
|
|
* Also fixed some more cases of "more then" -> "more than".
|
|
cleanup.
|
|
|
|
PyConsole on auto-complete
more a feature request then a bug but nice to have __doc__ on bmesh operators.
|
|
some speed.
|
|
|
|
|