Commit Graph

52002 Commits

Author SHA1 Message Date
Dalai Felinto 1cf1984d1c Python ui: increase interface float precision limit from 6 to 7 2013-10-31 03:21:20 +00:00
Campbell Barton bd17d2371f cancelling an operator popup now calls the operators cancel callback. 2013-10-30 23:15:27 +00:00
Campbell Barton 7267221715 remove return argument from wmOperatorType->cancel, was only ever returning OPERATOR_CANCELLED. 2013-10-30 23:08:53 +00:00
Campbell Barton bced18155f fix for uninitialized value use in newly added fcurve normalized view.
also quiet warning without openmp.
2013-10-30 22:13:28 +00:00
Andrea Weikert 1a746911d6 Add .webm to the list of extensions recognized as video
(Patch by Philipp Oeser, submitted in [#37199], many thanks)
2013-10-30 21:16:13 +00:00
Sergey Sharybin cd70a0e73a Code cleanup: typo-fix 2013-10-30 11:33:11 +00:00
Campbell Barton db8e02bc85 revert own commit r60607, caused bug [#37253] 2013-10-30 11:32:30 +00:00
Sergey Sharybin c241bf30a0 Fix #37252: Mask modifier doesn't copy settings on object copy 2013-10-30 09:44:29 +00:00
Antonis Ryakiotakis a415d188d2 Add some update notifiers for a few boolean paint properties (probably a
lot more needed) so that they get properly updated in UI when the
property is edited through python or a custom key binding to context
toggle operator.
2013-10-30 04:56:32 +00:00
Antonis Ryakiotakis 2045c86070 One more optimization for lasso, clip PBVH against object space planes
of lasso enclosing rectangle.
2013-10-30 01:58:19 +00:00
Antonis Ryakiotakis a8aa2c5bb4 Optimization of lasso masking using scanfill.
Thanks to Campbell for the advice!
2013-10-30 01:20:08 +00:00
Antonis Ryakiotakis 33a0469630 Some comment fixes, add new sculpt masking operators to menus 2013-10-30 00:54:41 +00:00
Antonis Ryakiotakis 96f756d4b3 Lasso select tool for masking in sculpting. Initial code, non optimized
for now.
Used to be ultra terrible but with threading (openmp) there is slightly
better performance
and is ready for testing. To use press shift-ctrl-lclick. Still no
ability to
remove mask. Coming soon.

Also make box selection threaded (openmp) and comment fix.
2013-10-30 00:37:13 +00:00
Sergey Sharybin bc5218a0f4 Code cleanup: more int->bool conversions mask module 2013-10-29 18:56:21 +00:00
Sergey Sharybin 8f747c4923 Code cleanup: use bool instead of int in mask module 2013-10-29 18:46:45 +00:00
Sergey Sharybin 16d13e0db9 Project Pampa request: FCurves normalized display
Added two options to a header of FCurve editor:

- Normalize which makes it so every individual
  curve is fit into -1..1 space.

- Auto-normalize, which probably is to be called
  "Lock" which "locks" curve normalization scale.
  This is useful to prevent curves from jumping
  around when tweaking it.

It's debatable whether it need to be a button to
normalize curves n purpose only, and it's fully
depends on animator's workflow.

Here during Project Pampa we've got Francesco
who get used to auto-renormalization and Hjalti
who prefers locked behavior.

Docs are to be ready soon by Francesco.
Thanks Brecht for the review!
2013-10-29 18:10:52 +00:00
Sergey Sharybin f6e504cee9 Make anim system safer for threading
Remove usages of ANIM_unit_mapping_apply_fcurve in favor of
runtime scale factor apply.

There're still calls to ANIM_nla_mapping_apply_fcurve are
hanging around, they're the next t be cleaned up!
2013-10-29 18:10:48 +00:00
Lukas Toenne 8bdbbca485 Fix #37192, Rendered preview causes crash when deleting a material node in shader node editor. The 'free' callback for node execution data was accessed from the node->typeinfo, but this pointer can
become invalid because the render database is not immediately freed after the job finishes. To avoid access to dangling node pointers, store the function callback in the exec data itself. The node
pointer must not be accessed in the free function (wasn't used before either), these functions are purely for the execution data.
2013-10-29 17:46:01 +00:00
Dalai Felinto 8d11abb0ec fix [#37250] dynotopo initial triangulation
hmrf arguments order was wrong ... but int/bool casting made it pass
through the compiler
2013-10-29 17:14:43 +00:00
Sergey Sharybin 63b01f6bee Code cleanup: remove unused block from multire baker
Mapping from grid on ll 0 was not used and was incorrect
since bmesh merge anyway.
2013-10-29 16:43:58 +00:00
Sergey Sharybin 781e1f3370 Enable multires bake to level 0
Uses trick with crating simple subdivided mesh with
level 1 and bakes against it.

From quick tests seems to be working correct, more
tests are welcome.
2013-10-29 16:43:56 +00:00
Sergey Sharybin 7bc61927ab Fix #37246: Dynamic paint end frame is limited to 9999
Not sure what's actual reason for this, increased it to MAXFRAMRF.
2013-10-29 16:06:21 +00:00
Lukas Toenne 2cccdd1678 Fix for particle texture influence bug causing undefined (nan) values: When using a texture with "Particles/Strands" coordinates that in turn has a "Lifetime" influence on the particles, the texture eval
accesses the particle lifetime/dietime data before it is actually defined! This is a design flaw, but to avoid corrupted data for now just initialize the lifetime/dietime values for particles in advance
before evaluating the texture.
2013-10-29 14:48:25 +00:00
Gaia Clary 055b65d6ba (Due to a change in function call) Added default triangulation method for Collada exporter 2013-10-29 10:49:44 +00:00
jens verwiebe f9ab1df564 Fix collada compile, too less arguments 2013-10-29 10:13:49 +00:00
Campbell Barton 96cd8b9401 style cleanup 2013-10-29 03:04:46 +00:00
Dalai Felinto a7b44c82e5 Triangulate Modifier: using different ngon and quad methods
Quads: Beauty, Fixed, Fixed Alternate, Shortest Diagonal
Ngons: Beauty, Scanfill

* Shortest Diagonal is the default method in the modifier (popular
  elsewhere), but beauty is the default in Ctrl+T).

* Remove the need for output slot and beauty operator to be called
after Clt+T

Patch with collaborations and reviewed by Campbell Barton
2013-10-29 02:42:51 +00:00
Campbell Barton 5f05de0c1e patch [#37218] Split operator for armatures
from Henrik Aarnio (hjaarnio)
2013-10-29 00:10:03 +00:00
Campbell Barton 41587de016 patch [#37217] Make WM_gesture_lines draw the lasso unfilled. (Adding reroute nodes, cutting node links)
by Henrik Aarnio (hjaarnio)
2013-10-29 00:05:03 +00:00
Campbell Barton 22396540d7 patch [#37219] RenderParts.partsdone is not a boolean, but a counter
from Lawrence D'Oliveiro (ldo)
2013-10-28 23:59:28 +00:00
Campbell Barton c11afb4a81 patch [#37231] Bone fill sets bone to connected, even if neither of its points is at the tail point of points it's connecting.
from Henrik Aarnio (hjaarnio)
2013-10-28 23:45:36 +00:00
Campbell Barton f0780904bc correct error in recent commit. 2013-10-28 23:35:25 +00:00
Sergey Sharybin 4ab478ffe1 Make it possible to track specified clip
Added a property to track_marker operator to be
able to render clip which name was passed to the
operator instead of clip from current clip editor
context.

Very much useful for automatic tests.
2013-10-28 21:49:49 +00:00
Daniel Genrich 421346cefe Fix compile error using Visual Studio 2012. 2013-10-28 19:43:53 +00:00
Sergey Sharybin e667f12783 Fix #37221: Multilayer EXR inputs generate pink frame/last displayed frame when using an image sequence offset
generally speaking, if multilayer image fails to load for current
frame doesn't mean anything bad. It might be used to make it so
image sequence is being alpha-overed somewhere in the middle of
scene time.

Made it so if the whole file fails to load, image node will
deliver black transparent color, the same what happens for
regular (non-multilayer images).

Also needed to tweak code in load_multilayer_sequwnce to make
sure no cached frames are pointing to a freed memory.
2013-10-28 12:16:17 +00:00
Campbell Barton 3264461598 move bmesh array lookup data and utility functions from editmesh into bmesh,
since enough bmesh operations can also take advantage of direct index lookups on verts/edges/faces.

developers note:
- EDBM_index_arrays_init/ensure/free -> BM_mesh_elem_table_ensure/init/free
- EDBM_vert/edge/face_at_index -> BM_vert/edge/face_at_index
- EDBM_uv_element_map_create/free -> BM_uv_element_map_create/free
- ED_uv_element_get -> BM_uv_element_get
2013-10-28 02:05:33 +00:00
Campbell Barton 0773fd7b78 fix for decimator editing the data it loops over in an unsupported way. 2013-10-28 01:58:05 +00:00
Andrew Hale 7be81ffaf5 Expose MVertSkin customdata layer in Python. This allows scripts to change parameters which are used by the skin modifier (such as radius) 2013-10-27 12:16:45 +00:00
Campbell Barton dee671276d rename BM_vert_at_index -> BM_vert_at_index_find (since this searches the mempool).
needed for other changes - coming.
2013-10-27 10:01:35 +00:00
Antonis Ryakiotakis aed672ac1e Border select for sculpting, using B shortcut, warmup for more advanced
masking, like lasso selection.
2013-10-27 03:31:19 +00:00
Campbell Barton 01da2c0e53 fix [#37195] particles crash with viewport render 2013-10-26 22:38:12 +00:00
Sergey Sharybin 9f32e83175 Weighted tracks
Added a weight slider to track which defines
how much particular track affects in a final
reconstruction. This weight is for sure
animateable.

Currently it affects on BA step only which in
most cases will work just fine.

The usecase of this slider is to have it set
to 1.0 most of the time where the track is
good, but blend it's weight down to 0 when
tracker looses the track. This will prevent
camera from jump.

Tutorial is to be done by Sebastian.
2013-10-26 13:22:38 +00:00
Campbell Barton 4a15df1571 remove null checks for macro definitions, if these fail then something is broken elsewhere, better not fail silently. 2013-10-26 08:01:33 +00:00
Campbell Barton a4203573cb fix for metaball editmode duplicate with PET 2013-10-26 06:48:56 +00:00
Campbell Barton 3c1dce0d9b fix for BM_faces_join_pair() making the assumption that only the 2 faces use an edge, face winding could be flipped incorrectly.
also remove search for shared edges - all callers pass the edge in.
2013-10-26 05:05:37 +00:00
Campbell Barton ff7dbdbaee rename give_cursor to ED_view3d_cursor3d_get 2013-10-26 04:07:18 +00:00
Campbell Barton b461cc9cd4 code cleanup: merge doxygen comments into C source. 2013-10-26 03:56:32 +00:00
Campbell Barton 7f9cdae280 fix for outline width theme option being ignored for non mesh object types. 2013-10-26 02:14:07 +00:00
Campbell Barton 48c1e0c0fc spelling: use American spelling for canceled 2013-10-26 01:06:19 +00:00
Campbell Barton 2b2c03aa7c fix for UI glitch with HSVCUBE color picker, color was noticeably not very smooth or aligned.
- HSV values need to be shifted.
- drawing the quads wasnt aligned well to colors.
2013-10-25 23:50:55 +00:00