Commit Graph

36598 Commits

Author SHA1 Message Date
Thomas Dinges
2fc46efbd6 Compositor:
* Bump BLENDER_SUBVERSION to "10", to reflect changes in r54304. (Compositor Translate Node)
2013-02-05 15:01:08 +00:00
Campbell Barton
adf9dffa30 set drag/drop operators as 'INTERNAL', there not useful to access from operator search. 2013-02-05 14:38:19 +00:00
Campbell Barton
ef457d5994 fix [#34118] Crash, when clicking "Assign image to UV Map" 2013-02-05 14:33:55 +00:00
Campbell Barton
4c3d5a4294 add RNA_define_animate_sdna() so animation can be easily disabled when defining many properties - currently use to disable animating brushes and toolsettings. 2013-02-05 14:25:22 +00:00
Brecht Van Lommel
1ca0d66bd2 Fix particle child render resolution access not working outside of the render thread,
and rename ToggleRender to set_resolution to follow RNA conventions.
2013-02-05 13:33:54 +00:00
Bastien Montagne
dd83387e0b And one more "G.main" compile fix, this time for BGE ;) 2013-02-05 13:31:59 +00:00
Thomas Dinges
dad053a152 * One more fix for Collada. 2013-02-05 13:16:21 +00:00
Sergey Sharybin
48cfe610db Tracking settings for new clip didn't match default reset 2013-02-05 13:10:26 +00:00
Sergey Sharybin
9d02ac41dc Attempt to fix collada compilation after recent commit
I don't have recent collada compiled here atm, so perhaps there're
more issues here.
2013-02-05 13:04:01 +00:00
Sergey Sharybin
fdfa5910b5 Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashes
Issue was caused by couple of circumstances:

- Normal Map node requires tesselated faces to compute tangent space
- All temporary meshes needed for Cycles export were adding to G.main
- Undo pushes would temporary set meshes tessfaces to NULL
- Moving node will cause undo push and tree re-evaluate fr preview

All this leads to threading conflict between preview render and undo
system.

Solved it in  way that all temporary meshes are adding to that exact
Main which was passed to Cycles via BlendData. This required couple
of mechanic changes like adding extra parameter to *_add() functions
and adding some *_ex() functions to make it possible RNA adds objects
to Main passed to new() RNA function.

This was tricky to pass Main to RNA function and IMO that's not so
nice to pass main to function, so ended up with such decision:

- Object.to_mesh() will add temp mesh to G.main
- Added Main.meshes.new_from_object() which does the same as to_mesh,
  but adds temporary mesh to specified Main.

So now all temporary meshes needed for preview render would be added
to preview_main which does not conflict with undo pushes.

Viewport render shall not be an issue because object sync happens from
main thread in this case.

It could be some issues with final render, but that's not so much
likely to happen, so shall be fine.

Thanks to Brecht for review!
2013-02-05 12:46:15 +00:00
Campbell Barton
e7cead0994 own recent change to triangulate bmesh operator stopped filling in mapping slot 'face_map.out', not used by blender its self but useful for scripts, enable this again. 2013-02-05 11:30:50 +00:00
Campbell Barton
9ddf928dbd remove stringify macro from alloc's 2013-02-05 09:42:40 +00:00
Campbell Barton
791e38afd2 fix [#34105] bake artifacts
different threads could allocate the mask buffer and overwrite the same pointer, regression since 2.65
2013-02-05 08:16:04 +00:00
Campbell Barton
2c0a3cf42e fix [#34113] operator_menu_enum() - Tooltip not showing descriptions
second fix from this report which makes the menu show tips even when 'bl_property' isn't set.
2013-02-05 05:39:18 +00:00
Campbell Barton
ec97183876 add python api docstring for 'bpy.types.Operator.bl_property' 2013-02-05 05:09:19 +00:00
Campbell Barton
a8601a5702 fix [#34113] operator_menu_enum() - Tooltip not showing descriptions
Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo().

add 'bl_property' to python operators which is assigned to OperatorType.prop when registering.

(api docs coming next)
2013-02-05 04:41:11 +00:00
Campbell Barton
936a38c607 fix for valgrind warning - using uninitialized variable. Though in practice it didn't cause any problems.
Getting the 'CTX_data_main' while un-fullscreen'ing a space would do a context lookup into the view3d_context which had an uninitialized layer.
since view3d_context doesn't hold a 'main' member it never did anything but cleaner not to do context lookups while modifying the view.
- noticed while checking on a real bug :)
2013-02-05 02:28:49 +00:00
Sergej Reich
e9ef8d6eff rigidbody: Avoid always making passive objects kinematic
It's only needed when they're being transformed.
Also deactivate passive objects after transformation so they don't keep
acitvating deactivated objects.

Fixes issues with using "start deactivated".
2013-02-04 23:50:38 +00:00
Sergej Reich
ace88b6962 rigidbody: Fix [#34108] Rigid body with no polygons crashes blender
Fall back to using box shape in case creating shape from mesh fails.
2013-02-04 23:50:36 +00:00
Sergej Reich
9d8ec8b30f rigidbody: Don't allow collision shape to be animated
While it's fun to be able to change collison shape while the simulation is
running it can cause crashes in some cases.
2013-02-04 23:50:34 +00:00
Sergej Reich
ae27a548f8 rigidbody: Fix [#34106] Deleting an object with Bullet Constraint crashes Blender
Constraints are deleted before rigid bodies so need to check if constraint
exists in case both the constraint and ridid body are on the same object.
2013-02-04 23:50:31 +00:00
Bastien Montagne
55ff9ecdd9 The usual UI messages tweaks... 2013-02-04 19:12:17 +00:00
Monique Dewanchand
ea723386c3 updated fix for [#34089] Crash opening file containing translation node saved before rev54235
some of our artists work to much on trunk :) Especially our beloved Pablo Vazquez.

We increased the blender file sub-version for checking if translate nodes needed to be updated.

Happy blending.
2013-02-04 17:38:37 +00:00
Thomas Dinges
a6f5a729fc Compile fix for r54300, setFactorXY function does not return a value. 2013-02-04 16:50:20 +00:00
Campbell Barton
9d713688ba code cleanup: warnings 2013-02-04 16:20:39 +00:00
Brecht Van Lommel
03687b7c66 Compositor "Relative" option for Translate node, same as for other nodes this
makes it possible to specify an offset relative to the render resolution (so 0.5
is half the image rather than giving the number of pixels). It's a bit late but
it's a trivial change and needed for 4k mango render.
2013-02-04 16:12:42 +00:00
Campbell Barton
1c1fb24f31 fix for rangefunc being unused for int & int array.
also cast strlen to an int to avoid overflow.
2013-02-04 15:48:29 +00:00
Campbell Barton
42bbd7d62e fix for memory leak selecting dope sheet summary with mask/grease-pencil data. 2013-02-04 13:50:09 +00:00
Campbell Barton
932be982d6 fix [#34107] Grease pencil crash after box select 2013-02-04 13:17:34 +00:00
Campbell Barton
88aa33d3f4 fix [#34104] vertex color: color select bug
changing the hue in a color picker on a panel when black/white was selected would fail because the hue from the previous state wasnt stored.
2013-02-04 12:32:24 +00:00
Sergey Sharybin
df1fe57621 Fix #34079: RGB and HSV values inconsistency
Use COLOR_GAMMA subtype for new image color since this color is
actually being color managed. Also made it so byte and float
buffers would have the same exact display color after creation
with the same color value.

Also made it so color strip's color have COLOR_GAMMA subtype,
otherwise swatch color wouldn't match render result which is
not nice at all.
2013-02-04 12:14:59 +00:00
Campbell Barton
29a15f287f fix [#34098] Crash after using Decimate or Remesh modifiers
converting a derived mesh to a mesh didnt clear its selection history, which could be invalid after applying a modifier.
2013-02-04 11:28:31 +00:00
Campbell Barton
4528405597 add BM_edge_is_contiguous(), check for python api. 2013-02-04 10:14:31 +00:00
Campbell Barton
69993c5d40 style cleanup: spaces -> tabs 2013-02-04 00:18:09 +00:00
Campbell Barton
9d4be17de4 style cleanup 2013-02-04 00:05:15 +00:00
Campbell Barton
c584e01bee drawvolume was timing drawing unnecessarily,
replace local defined timing functions with calls to TIMEIT_* macros from PIL_time.h and disable by default.
2013-02-04 00:02:26 +00:00
Monique Dewanchand
2950214527 One fix for bug [#33785] compositor is (unnecessarily?) slow
Added additional buffers - new subtree - for groupnodes.
One needs to be aware of how groupnodes should be created. 
Having translate & scale nodes, with the translate inside the groupnode and the scale node outside, causes artefacts.
Both should be inside or outside the groupnode. Same holds for other distort nodes.
2013-02-03 17:22:26 +00:00
Jeroen Bakker
b58b107db4 Fix for [#34089] Crash opening file containing translation node saved before rev54235 2013-02-03 15:38:06 +00:00
Jeroen Bakker
abe41ba65f Fix for [#34022] Lines on renders using Blur node in flat mode 2013-02-03 15:06:16 +00:00
Campbell Barton
bc3cb6ff76 remove paranoid null check from BLI_ghash_lookup(), was the only ghash function with a null check, callers better check the ghash exists first. 2013-02-03 15:03:55 +00:00
Campbell Barton
48e9c158db fix [#34093] Metastrips don't behave correctly with alt+leftarrow 2013-02-03 12:19:14 +00:00
Campbell Barton
89bda7899d style cleanup & some spelling 2013-02-03 10:28:28 +00:00
Ton Roosendaal
2cfe44cc94 Bug fix #34090
Animation of render output size is not supported, not for render borders either.
This commit makes the border rna properties disable animation support.
2013-02-03 10:26:51 +00:00
Campbell Barton
0510735f4e fix BM_loop_calc_face_tangent for concave face corners, caused a bug in wire-frame operator. 2013-02-03 09:44:37 +00:00
Campbell Barton
4e94fca896 fix for error in own recent change, sculpt triangulate was done on a bmesh with uninitialized faces normals,
add warning that BM_mesh_bm_from_me() dosn't calculate face normals.
2013-02-03 08:13:15 +00:00
Campbell Barton
c649107499 when triangulating ngons, use beauty option to rotate edges. gives much nicer results and means you can preserve original edges without triangulating ngons one at a time 2013-02-03 08:07:14 +00:00
Campbell Barton
415b425e65 improve edge slide with ngon's, distance calculation was average edge length.
now use the slide vector to find opposite ngon edge which sets the slide destination.
2013-02-03 07:26:58 +00:00
Campbell Barton
bb22b7c580 add dist_to_line_v3() for completeness, (had dist_to_line_v2 already) 2013-02-03 07:24:31 +00:00
Campbell Barton
1f21efdeac fix [#34073] Combined EdgeLoop slides weirdly on even try
concave check on co-linear edges could fail, avoid by using the loop-direction + face normal.
2013-02-03 06:09:29 +00:00
Campbell Barton
f0d4b85fef improve BMesh api use from r54265, no need to do edge lookups from the faces verts since the face stores these already.
also remove ScrArea.cursor, historic runtime variable.
2013-02-03 02:54:24 +00:00