Commit Graph

47230 Commits

Author SHA1 Message Date
Sergej Reich
3d1b24af00 rigidbody: Code cleanup
Remove outdated comment.
2013-04-25 19:50:51 +00:00
Bastien Montagne
e22c52af16 Fix [#34545] Render layer name is unwantedly translated in composite node editor
Some enums' items actually are generated from data (like the render layers of compo nodes), so they should not be translated. Added a PROP_ENUM_NO_TRANSLATE new RNA flag to tag those enums (only found those for nodes, but may be more of them around).

Also fix similar issue in main list of render layers (Py UI code! :P ).
2013-04-25 17:40:08 +00:00
Campbell Barton
ed68497700 style cleanup 2013-04-25 16:35:57 +00:00
Sv. Lockal
8df319f5e6 minor fixes for freestyle
- update copying code for linestyles to copy gaps
- update copying code for freestyle line modifiers to copy mapping flags and seeds
- fix drawing code for Material modifiers after a recent refactoring
2013-04-25 16:23:23 +00:00
Campbell Barton
faeeb4b3aa individual inset was missing relative option. 2013-04-25 16:14:04 +00:00
Brecht Van Lommel
656213e6b2 Fix freestyle crash due to freed memory access. The render data needs to be
freed first, and then the scene that it used.
2013-04-25 15:59:15 +00:00
Brecht Van Lommel
4a6de485c3 Fix part of #34640: vertex color blur brush would average face corner colors
at vertices for the entire mesh, which meant that discontinuous face colors
would be lost for unrelated parts of the mesh too. Now only vertices within
the brush radius will be affected.
2013-04-25 14:29:19 +00:00
Brecht Van Lommel
811587ce32 Fix #35077: cycles incorrectly rendered an empty with dupligroup that was
dupliverted by its parent.
2013-04-25 14:16:24 +00:00
Brecht Van Lommel
c2d5c72245 Fix part of #34640: colors darkening when using the vertex paint blur tool.
The problem was that vertex colors only have 8 bits of precision, and integer
division always rounds down, so after some color blending iterations everything
gets darker. Instead use integer division that behaves like round() instead of
floor() for blending operations.
2013-04-25 14:16:22 +00:00
Gaia Clary
631f2b94ef fix:#35073 face normals calculation used wrong mloop index 2013-04-25 13:28:32 +00:00
Sergey Sharybin
d0b74452ad Fix #35074: Image editor shows color banding on rendered images (even with dither set to 2.0)
Mistake in one of changes to GLSL display function,
missed fallback mode in case dither is non-zero,
2013-04-25 12:02:56 +00:00
Campbell Barton
f4d37847af ruler tweak: don't, snap to edit-object, because it didnt work well when modifiers are applied in editmode. 2013-04-25 11:46:07 +00:00
Campbell Barton
b106681da2 ruler snapping
- draw snap circle to make it more obvious when snapping succeeds.
- when not in wire-view, snap to the surface when adding new rulers.
2013-04-25 10:14:19 +00:00
Joshua Leung
fa02cccf2a Bugfix [#35075] Physics Panel of Particles Fluid is Truncated
Some RNA Properties were not updated in UI scripts after a recent refactoring
there removing "use_" prefix from some of the boolean properties (strangely
though, while every other property attached to SPHFluidSettings.flag has gone
from "use_factor_blah" to "factor_blah", use_factor_density still keeps the old
prefix).
2013-04-25 10:05:49 +00:00
Campbell Barton
a25703eb36 ruler snap adjustments
- when in wireframe mode: don't snap to faces, instead snap to the closest edge/vertex.
- when not in wireframe mode: snap to the front-most element (was a problem that it could snap to an edge/vert behind the face)
- reduce the distance for selecting ruler points, was too easy to accidentally drag a ruler.
2013-04-25 09:39:03 +00:00
Campbell Barton
16f61b8b0b fix [#35072] View name of 3Dview is clamped in Japanese
just increase size of string to allow for utf8 chars.
2013-04-25 08:13:46 +00:00
Francisco De La Cruz
70de23dabb Fix #29932 Left Shift + Numpad 1,2,3 not Aligning to Active
Intermediate Shift+Key messages were resetting modifier flags.
2013-04-25 05:32:32 +00:00
Brecht Van Lommel
d22e9657a5 Fix build error with scons + msvc, needs pthread include. 2013-04-25 00:06:43 +00:00
Brecht Van Lommel
2516497ca2 Fix two more high DPI / retina draw issues with running jobs in info header and
the node tree name in the node editor.
2013-04-24 23:09:29 +00:00
Brecht Van Lommel
2043d801e8 Fix #34806: rigid body world settings were not copied with a full scene copy.
Now copying a scene will also duplicate groups that consist entirely of objects
that are duplicated with the scene. The rigid body world will then also pointers
to these new groups.
2013-04-24 23:09:25 +00:00
Brecht Van Lommel
11c6abe53b Fix crash going to a scene with no camera, with an inactive 3D viewport space.
The regions of the space are stored in a different place depending if it is
active or if another space is in use. The code here was iterating over both
but it should be only one because the other might contain regions of another
space.
2013-04-24 23:09:22 +00:00
Brecht Van Lommel
08a48b8b96 Fix rigid body world Solver Iterations not showing in UI and throwing python error. 2013-04-24 23:09:19 +00:00
Campbell Barton
27d19aaaf4 minor fixes
- build with netbsd works again.
- select uv more/less was crashing when called outside image space.
- node RNA property update was crashing when not called in node space.
2013-04-24 20:19:01 +00:00
Brecht Van Lommel
18b1ab1598 Fix #34714: cycles viewport render would restart when minimizing and unminimizing
a maximized Blender window in Ubuntu Unity. The window size would slightly change
as part of the unminimize effect.

Now cycles waits 0.2 seconds before restarting rendering after a viewport resize,
also a bit less flickery when changing the 3d view size in Blender itself.
2013-04-24 20:12:12 +00:00
Brecht Van Lommel
a0e03a6c77 Fix cycles build error, RNA C++ API did not properly handle output parameters. 2013-04-24 19:21:18 +00:00
Brecht Van Lommel
ee6932aa89 Fix flickering black tiles in preview render, after viewport render commit, it's
nicer when the new preview draws over the old one.

The code was changed so that the render result is freed all the time because
freestyle manipulates render layers. Now it only does it when freestyle is
enabled so cycles and regular blender internal can still avoid it.
2013-04-24 19:21:16 +00:00
Brecht Van Lommel
04c8d8b919 Fix blender internal preview rendering continuously restarting after recent
viewport render changes.

Actually was an older issue that would cause unnecessary preview render restarts
if the render result was not allocated before it was drawn. Now the render result
is being reallocated each time for freestyle which made the issue worse.
2013-04-24 19:21:14 +00:00
Campbell Barton
00d04e1924 rna api function scene.ray_cast now returns the object and its matrix (incase its a dupli). 2013-04-24 17:49:13 +00:00
Brecht Van Lommel
dbeec2be86 Fix #34783: smoke simulation crash when changing frame while preview rendering.
Added a mutex lock for smoke data access. The render was already working with a
copy of the volume data, so it's just a short lock to copy things and should not
block the UI much.
2013-04-24 17:31:09 +00:00
Brecht Van Lommel
64e28b21ba Fix #35068: bpy.ops.node.output_file_add_socket() now works on the active node
if there is no "node" in the context, for scripting convenience.
2013-04-24 16:59:56 +00:00
Lukas Toenne
6cdc12dc74 Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes.
The design changes coming with pynodes for the node editor allow editing multiple node groups or pinning. This is great for working on different node groups without switching between them all the time, but it causes a problem for viewer nodes: these nodes all write to the same Image data by design, causing access conflicts and in some cases memory corruption. This was not a problem before pynodes because the editor would only allow 1 edited node group at any time. With the new flexibility of node editors this restriction is gone.

In order to avoid concurrent write access to the viewer image buffer and resolve the ambiguity this patch adds an "active viewer key" to the scene->nodetree (added in bNodeTree instead of Scene due to otherwise circular DNA includes). This key identifies a specific node tree/group instance, which enables the compositor to selectively enable only 1 viewer node.

The active viewer key is switched when opening/closing node groups (push/pop on the snode->treepath stack) or when selecting a viewer node. This way only the "last edited" viewer will be active.

Eventually it would be nicer if each viewer had its own buffer per node space so one could actually compare viewers without switching. But that is a major redesign of viewer nodes and images, not a quick fix for bcon4 ...
2013-04-24 16:36:50 +00:00
Brecht Van Lommel
48b3dab64a Fix #35008: compositing nodes viewer border (ctrl + B) not working correct inside node groups. 2013-04-24 15:39:19 +00:00
Campbell Barton
9697493c77 allow to scale and rotate from edge/vertex slide. 2013-04-24 15:15:01 +00:00
Campbell Barton
f3518d9d76 fix for crash changing transform modes rotate/edge-slide/grab. setCustomPoints() assumed allocated member was big enough which wasnt the case when switching from rotate. 2013-04-24 15:06:42 +00:00
Brecht Van Lommel
f9592e9a6e Fix #35063: GLSL texture node Value output was not outputting alpha. 2013-04-24 15:05:43 +00:00
Brecht Van Lommel
a4f40416f5 Fix material node editor not working when Blender Game is selected as render engine. 2013-04-24 15:05:40 +00:00
Campbell Barton
b18ef3b8fb use more rna-constant name for bevel clamping. 2013-04-24 14:14:54 +00:00
Campbell Barton
2cfbabc9b8 fix relating to r56260, when in vertex paint mode the mesh would have tessfaces allocated, which prevented baking from updating vertex colors.
baking now clears tessfaces.
2013-04-24 13:53:09 +00:00
Campbell Barton
2439bf0d9b fix glitch where vertex baking wouldn't always refresh the mesh. 2013-04-24 13:12:29 +00:00
Howard Trickey
d2daa230d6 Fix bug #34611: bevel overlap limit
The previous fix limited overlap, but is sometimes
too conservative, and artists want way to turn off
the limiting, so added 'Allow Overlap' option to
modifier.
2013-04-24 12:39:37 +00:00
Campbell Barton
245a175a00 fix [#34657] Smoothing will not be updated in object mode, when hiding faces 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.
2013-04-24 12:07:13 +00:00
Campbell Barton
40c217cabd fix for mistake in own recent commit r56249 with rna_EffectorWeight_path 2013-04-24 07:40:55 +00:00
Campbell Barton
3b8221045f simple optimizations for bvhtree_from_mesh_faces() for editmesh, was quite inefficient (unneeded loops, not breaking out of face loop early).
also correct own oversight - use TRANSFORM_DIST_MAX_RAY rather then when checking for max value in snapDerivedMesh.
2013-04-24 00:25:12 +00:00
Tamito Kajiyama
ad6cc0d0ac Fix for broken Material color/alpha/thickness modifiers.
Reverted part of the trunk revision 56234 (RNA attribute consistency edits).
2013-04-24 00:14:16 +00:00
Campbell Barton
b64ec6c51e alternate fix for [#24887] - r33294.
Casting a ray onto an editmesh was building a derivedMesh, raytree, then freeing for every ray-cast.
Noticed while using ruler+snapping in editmode.

Instead of attempting to align the MFace and edit-mesh tessfaces, just use editmesh for ray-casting.
2013-04-23 23:57:27 +00:00
Tamito Kajiyama
a1ed1dd26b Fix for full-sample anti-aliasing (FSAA) not working with Freestyle.
Reverted the trunk revision 56136 and part of revision 56127 concerning the local Main
for Freestyle and temporary scene generation for stroke rendering.

The function do_merge_fullsample() in pipeline.c has access to the Scene of each Render,
so that the temporary Scene generated by Freestyle has to be kept for FSAA even after
stroke rendering has been done.  By the same token, the local Main has been moved from
the BlenderStrokeRenderer class to Render.  It is noted that free_all_freestyle_renders()
in pipeline.c is intended to get the temporary Scene of each Render released specifically
taking account of the FSAA case.
2013-04-23 22:40:13 +00:00
Campbell Barton
9465ecf634 use string escaping when renaming animation paths - BKE_animdata_fix_paths_rename() 2013-04-23 20:24:10 +00:00
Campbell Barton
7dde355185 fix [#34958] keyframe many items would fail if there was a (") in the text. 2013-04-23 20:10:22 +00:00
Lukas Toenne
9afdda3689 Another little fix for #35010. Added better labeling for node groups, so it's possible to see which node group type the sockets in the node tree view belong to. Otherwise would be virtually impossible to use it. 2013-04-23 17:49:26 +00:00
Campbell Barton
d119b5b197 remove negated string macros from BLI_utildefines.h, were unused and can just use !STREQ(...) 2013-04-23 16:27:45 +00:00