Commit Graph

47915 Commits

Author SHA1 Message Date
Lukas Toenne
902dbbe301 Replacement for the "Active Node" panel in node editor properties sidebar. This panel is now defined in space_node.py instead of node_buttons.c. The properties have been split up into generic properties
(name, label), custom colors (closed by default) and input parameters (extra options + unlinked input socket values).
2013-05-29 12:43:37 +00:00
Lukas Toenne
9eb93a9d9c Node options draw function fix for C nodes: use the default button draw function as a fallback if no extended draw function is defined. 2013-05-29 12:43:35 +00:00
Campbell Barton
0b51ecb9a8 workaround for search menu enum using freed python scripts (py api limitation). 2013-05-29 11:55:35 +00:00
Sergey Sharybin
9e05f6571f Make sure bool will always have the same size in C and C++
There were an issues with data structures defined in headers
and being used by both C and C++ on systems with stdbool
unavailable.

This happened because bool in this case will be defined as
unsigned int, which is 4 bytes. But C++'s bool is only 1
byte and this lead to alignment issues.

Now bool is always 1 byte, also made sure there's no situation
like bool foo = BitField & BitFlag, which could give overflow
issues. Use (BitField & BitFlag) != 0 instead.

Fixes #35553: Compositor broken (Backdrop & Preview)
2013-05-29 11:49:39 +00:00
Campbell Barton
e99801dc70 fix for confusion switching active group when running mirror (would swich back when toggling editmode if a pose bone was selected). 2013-05-29 01:28:55 +00:00
Campbell Barton
7c97a95911 improve topology mirror, increase chance of finding unique match. 2013-05-29 01:21:49 +00:00
Campbell Barton
7325919323 tweaks to vertex weight limit
- double check def_nr is valid (rare cases it is).
- usability, report how many weights are removed.
2013-05-29 00:00:24 +00:00
Campbell Barton
c1619a528c fix for own mistake in recent change to use defvert layer offsets. 2013-05-28 23:13:04 +00:00
Campbell Barton
de3686ac25 fix [#34851] "UnitSettings.scale_length" not beeing calculated the same way for all objects 2013-05-28 23:07:16 +00:00
Campbell Barton
abfee7425b correct error in r57092 with scons. 2013-05-28 20:35:12 +00:00
Sergey Sharybin
04d54f89d2 Correction for strict compiler flags. 2013-05-28 20:19:38 +00:00
Campbell Barton
b5cb9e8810 add BLI_sys_types.h 2013-05-28 19:42:19 +00:00
Campbell Barton
149b77f2bb don't use globbing for freestyle cmake file. 2013-05-28 19:38:28 +00:00
Campbell Barton
225c5fee6b move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
remove MEM_sys_types.h which was a duplicate.
2013-05-28 19:35:26 +00:00
Alexander Kuznetsov
60befcdc62 Fix for r35524. Thanks Jeffrey Hoover for reporting.
WM_SIZE is dispatched before full init.
2013-05-28 18:36:47 +00:00
Lukas Toenne
3128a47d22 Quick addition to the node sidebar "Active Node" panel: draw input socket values in addition to non-socket settings. This makes it possible to actually use the sidebar for all node settings without
having to go to the main area for changing socket values.

This patch should be considered a temporary solution. The Active Node panel is a horrible mess and needs to be split up and cleaned. It should probably be moved to python as well.
2013-05-28 18:10:00 +00:00
Jens Verwiebe
3223518e32 QTKIT: as per Ideasman's suggestion, include BLI_utildefines.h in sourcefiles where needed and reorder (must be before BKE_global.h) 2013-05-28 17:38:02 +00:00
Brecht Van Lommel
27b8ea476d Cycles OpenCL: disable requirement of enabling Experimental, environment varibale
already adds an extra step. Also list all features for OpenCL AMD to make testing
easier.
2013-05-28 17:37:24 +00:00
Jens Verwiebe
f4d3fdf288 Since have_quicktime is now a bool, need extra include for stdbool 2013-05-28 16:57:28 +00:00
Campbell Barton
fc7c0506b8 bmo_subdivide_edgering.c now builds with release+debuginfo, also remove unused defines and correct include guards. 2013-05-28 16:35:47 +00:00
Campbell Barton
88d385ef70 fix [#35509] MedianPoint choice has bad normals 2013-05-28 15:08:13 +00:00
Brecht Van Lommel
33d609144e Cycles: normal maps are now backwards compatible again after recent fix, with
a separate Blender Object/World Space that is compatible with Blender render
baking and uses the YZ flipping convention.
2013-05-28 14:24:03 +00:00
Campbell Barton
ef4db04da8 code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mapping functionality.
replace ED_mesh_calc_normals with BKE_mesh_calc_normals().
2013-05-28 14:23:07 +00:00
Sergey Sharybin
c987aa7df5 Hopefully scons+llvm works again. 2013-05-28 14:05:12 +00:00
Campbell Barton
f3ad5bd3ff rename references to faces in docs. 2013-05-28 13:58:56 +00:00
Campbell Barton
c7a46d5369 reorder includes for win 2013-05-28 13:37:47 +00:00
Gaia Clary
be773f22b1 Added missing recalculate of normals after mesh import 2013-05-28 13:32:29 +00:00
Campbell Barton
dc39ecf010 code cleanup: remove old/unused bmesh bevel transform mode, remove commented character list UI widget and the members these used in 'G' global. 2013-05-28 13:01:31 +00:00
Campbell Barton
0559630c7e fix for missing normalize with recent optimizations. 2013-05-28 12:00:36 +00:00
Sergey Sharybin
285137cefb Fix #35473: Using Redo panel in View3D after Grease Pencil action moves GP layer to that area
Remove REGISTER flag from GP draw operator, so redo wouldn't screw up regions.
2013-05-28 11:44:35 +00:00
Lukas Toenne
81ba62e1e9 Fix for node menu: Show the group input/output nodes in the Input/Output categories respectively, so they can be added with the usual UI in case the user deletes them. These nodes are polled out for
non-group trees (node trees not in the bpy.data.node_groups collection) to avoid confusion. For that purpose a new optional poll function argument has been added to NodeItem, which allows selectively
polling individual items in an otherwise static list.
2013-05-28 09:45:34 +00:00
Sergey Sharybin
5486016e04 Fix #35547: incomplete tooltips in node editor
Descriptions were missing since PyNodes integration.

Thanks to lukas for patch review!
2013-05-28 08:58:27 +00:00
Sergey Sharybin
b39a532083 Fix #35513: Multires modifier normal corruption on apply base
Seems it was simply missing mesh normals update in multiresModifier_base_apply.
2013-05-28 08:40:47 +00:00
Miika Hamalainen
8ebc246a9a Fix: smoke initial velocity didn't work with the new custom size particles. 2013-05-28 08:10:01 +00:00
Campbell Barton
c77179a3c2 code cleanup: comment/remove unused defines 2013-05-28 01:15:59 +00:00
Tamito Kajiyama
1ab7a6f9af Fix for crash in Freestyle with sketchy chaining and Bezier Curve geometry modifier.
When the sketchy chaining is used, stroke geometry may contain a 180-degree U-turn.
If the 'error' parameter of the Bezier Curve geometry modifier is small (e.g., 10),
Bezier curve fitting will recursively split the original stroke into two pieces.
This splitting may take place at a U-turn point, causing a numerical singularity issue
that leads to a crash.

Problem report by edna in the BA Freestyle thread, with an example .blend to reproduce
the problem.  Thanks a lot!
2013-05-28 00:35:29 +00:00
Campbell Barton
5de17660e2 fix [#35543] Bezier curve width and twist fail to apply when more than 1 point is edited 2013-05-27 23:51:01 +00:00
Campbell Barton
c498a8f2b4 fix [#35544] Boids Segfault of frame advance using cursor keys
caused by partial revert of r56073.
2013-05-27 22:25:54 +00:00
Campbell Barton
4439eca654 fix [#35503] Bug with BMesh and Mirror Modifier (Blender 2.67)
regression with bmesh - extruding was creating faces where it shouldn't.
2013-05-27 20:56:33 +00:00
Campbell Barton
a70fa65592 optimize mirror merging, remove array reallocation, replace with fixed size arrays. 2013-05-27 20:11:12 +00:00
Campbell Barton
44b3735078 fix error in own recent commit, also other minor changes. 2013-05-27 18:51:31 +00:00
Campbell Barton
d2d0866cff view3d buttons, internal change: make act_vert_def vertex argument optional. 2013-05-27 18:10:36 +00:00
Bastien Montagne
a11cd2bd21 Picky UI message fix... 2013-05-27 18:08:14 +00:00
Brecht Van Lommel
601b8c1041 Fix #35505: cycles object space normal mapping did not match blender internal.
Now it uses the same (strange) YZ flipping convention.
2013-05-27 17:48:02 +00:00
Brecht Van Lommel
833ca58260 Fix #35506: enter local view, enable render draw mode, exit local view. In this
case the render engine would keep working invisible in the background.
2013-05-27 17:21:20 +00:00
Thomas Dinges
722680d7cf Cycles / OpenCL:
* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21. 
I tested the files from regression suite.
2013-05-27 17:13:36 +00:00
Brecht Van Lommel
bb15701f86 Particles: patch #35205 by Jakub Zolcik
The Emission panel now has a Use Modifier Stack option to emit particles from
the mesh with modifiers applied. Previously particles would only be emitted from
faces that exist in the original mesh. There are some caveats however:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.68/Tools#Particles
2013-05-27 17:11:05 +00:00
Brecht Van Lommel
4bdb54a76e Cycles OpenCL: patch #35514 by Doug Gale
* Support using devices from all OpenCL platforms, so that you can use e.g. both
  Intel and NVidia OpenCL implementations if you have them installed.
* Fix compile error due to missing fmodf after recent math node change.
* Enable advanced shading for Intel OpenCL.
* CYCLES_OPENCL_DEBUG environment variable for generating debug symbols so you
  can debug with gdb. This crashes the compiler with Intel OpenCL on Linux though.
  To make this work the preprocessed kernel source code is written out, as gdb
  needs this.
* Show OpenCL compiler warnings even if the build succeeded.
* Some small fixes to initialize cdDevice to NULL, add missing NULL check when
  creating buffer and add missing space at end of build options for Apple OpenCL.
* Fix crash with multi device + opencl, now e.g. CPU + GPU render should work.

I did a few tweaks to the code and also:

* Fix viewport render failing sometimes with Apple CPU OpenCL, was not taking
  workgroup size limits into account properly.
* Add compile error when advanced shading in the Blender binary and OpenCL kernel
  are not in sync.
2013-05-27 16:21:07 +00:00
Campbell Barton
5460e31d56 now an addons preference are available when it start,
this change is made so addons may initialize their own settings.
2013-05-27 16:12:06 +00:00
Sergey Sharybin
880c132b11 Fix #35480: object without material crash blender when starting game engine
Was a missing NULL-pointer check. No idea why it took so long to figure
issue out -- apparently there was no crash in linux for me and msvc
didn't show any backtrace :S

Also corrected weirdo way of bit flag check which was:
  !ma->mode & MA_FACETEXTURE
better do !(ma->mode & MA_FACETEXTURE) since ! is a logic NOT.
2013-05-27 15:13:14 +00:00