Commit Graph

41152 Commits

Author SHA1 Message Date
Lukas Toenne
fdd8897172 Cleanup and improvements of the compositor debug output.
Debug code for graphviz output moved to a dedicated file COM_Debug.h/cpp.

The DebugInfo class has only static functions, which are called from a number of places to keep track of what is happening in the compositor. If debugging is disabled these are just inline stubs, so we
don't need #ifdefs everywhere and don't get any overhead.

The graphviz output is much more useful now. DebugInfo keeps track of node names in a static string map for meaningful names. It uses a number of colors for various special operation classes.
ExecutionGroups are indicated in graphviz with clusters.

Currently the graphviz .dot files are stored in the BLI_temporary_dir() folder. A separate dot file is generated for each stage of the ExecutionGroup scheduling, this is intended to give some idea of the
compositor progress, but could still be improved.
2013-09-13 13:36:47 +00:00
Brecht Van Lommel
ed2343270c Related to #36710: add a "use_viewport" option to the render operator, to specify
if the layers and camera of the 3d viewport should be used. Python scripts don't
always want this behavior.
2013-09-13 13:34:12 +00:00
Brecht Van Lommel
b938293576 Fix memory leak reading mesh data after change to skip saving temporary
custom data layers.
2013-09-13 13:34:10 +00:00
Bastien Montagne
eb9f32776a Match free_normals_split with calc_normals_split names ;) 2013-09-13 12:13:30 +00:00
Campbell Barton
7fb3de281d change NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN/END) 2013-09-13 08:45:20 +00:00
Campbell Barton
29cbf93b07 correct error in libmv stub, also correct typo. 2013-09-13 03:49:11 +00:00
Joshua Leung
cca746c8e6 Moved and renamed ED_pose_channel_in_IK_chain() ->
BKE_pose_channel_in_IK_chain()

This was needed for depsgraph work, and it's cleaner for RNA to have fewer
dependencies on editors
2013-09-13 03:03:46 +00:00
Campbell Barton
42524915b5 fix/workaround [#36709] Renaming multiple objects in the outliner halts the interface
Only show one edit button at a time (editing multiple buttons at once I never saw in other ui toolkits and its unclear what you change).
2013-09-12 22:55:42 +00:00
Campbell Barton
f801661f3d when handling the escape key, check for press (ignore release events), right mouse already did this.
ensures the escape key isn't handled twice for one press.
2013-09-12 22:48:46 +00:00
Campbell Barton
365c368b5f add back library linking warning when renaming library datablocks in the outliner, also typo corrections. 2013-09-12 22:08:56 +00:00
Nathan Letwory
4e24e31f8b Change the enum for CustomDataMask bits back to #defines.
enum is an int, and values from CD_PREVIEW_MLOOPCOL (32) onwards
will not give what apparently was expected.

Found with help from Oscurart in #blendercoders while trying to figure
out compile error with CMake/msvc9. Occasionally it is good to heed
the warnings given by compilers!
2013-09-12 20:43:29 +00:00
Campbell Barton
ec2464ac5f code cleanup: unnecessary shadowing and some minor pep8 edits. 2013-09-12 19:51:31 +00:00
Brecht Van Lommel
c41bb7961f Different implementation of patch #36430: use layer froms scene directly for
rendering, in case some script wants to set it in the render_pre callback. In
case of decoupled 3d view layers or local view it will still override this
though.
2013-09-12 12:09:14 +00:00
Campbell Barton
c9dfe7bd74 more localized fix for [#36299], only changes behavior for subsurf with orco in editmode 2013-09-12 10:41:00 +00:00
Lukas Toenne
7bbb838935 Fix #36706: Added complementary API functions for the FileOutput node so file/layer slots (input sockets) can be added without using the operator. Instead of adding sockets to these node using the
node.inputs collection, the node.file_slots or node.layer_slots collections should be used. Both of them work, they just provide slightly different properties for use with simple files or multi-layer
EXR.

The FileOutput node design is cumbersome and should be considered broken. It should eventually be replaced, the problem with that is backward/forward compatibility.
2013-09-12 08:43:25 +00:00
Lukas Toenne
6030c0b68f Partial fix for #36706: Prevent invalid sockets in the FileOutput node by removing sockets without storage data. 2013-09-12 08:43:24 +00:00
Campbell Barton
769c5bade5 fix [#36299] Skin Modifier causes crashes in combination with multiple Subdivision modifiers 2013-09-12 08:28:41 +00:00
Campbell Barton
39f40250ed bmesh wireframe operator now adds crease customdata when the crease option is enabled. 2013-09-12 04:02:31 +00:00
Campbell Barton
664de20eee correct brackground rectangle drawing in info view. need to compensate for recent change in text offset. 2013-09-12 03:38:25 +00:00
Campbell Barton
8beb565c59 code cleanup: headers - doxy comments. 2013-09-12 03:02:50 +00:00
Campbell Barton
30695da261 another fix for [#36694], user submitted a new testfile that crashes without pointer lists being cleared. 2013-09-12 01:41:16 +00:00
Antony Riakiotakis
f16047c2df Better fix for #36688.
Throw a python error if user attempts to use CurveMap without calling
CurveMapping.initialize() first. Added access to the initialize function
to CurveMapping on RNA level.

Thanks to Campbel for the help and remarks!
2013-09-11 23:28:23 +00:00
Daniel Stokes
494687908c BGE: Potential fix for [#35522] Broken game engine compatibility since 2.66a on some ATI cards?
Disabling display lists for legacy ATI cards since they don't support display lists well.

Also removing an unused variable from the display list rasterizer.
2013-09-11 23:24:45 +00:00
Campbell Barton
202109a8f5 code cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere.
also minor style cleanup.
2013-09-11 21:27:14 +00:00
Campbell Barton
a144793af1 fix uninitalized var with new normal calculation function. 2013-09-11 21:23:09 +00:00
Brecht Van Lommel
1b55158753 Fix use of uninitialized variable in new Mesh.calc_normals_split. 2013-09-11 18:57:58 +00:00
Brecht Van Lommel
e19006b8ce Fix #36705: UV pack island crashing after recent change. 2013-09-11 18:57:56 +00:00
Lukas Toenne
ba68fea78b Fix #36700, z-depth not rendering properly at (n*256)+1 dimensions.
The chunk indices for scheduling chunks based on a given area were calculated incorrectly. This caused chunks at the very border of the render (pixels 256..257) to be omitted, leading to incorrect values
in the Z buffer of the test file, which in turn caused wrong normalization range and the resulting almost-white image.
Also added a dedicated executePixel function for Z buffer to avoid any interpolation of Z values.
2013-09-11 17:34:32 +00:00
Sergey Sharybin
9ea032f8e0 Enable transform helpline in clip editor 2013-09-11 11:43:43 +00:00
Sergey Sharybin
9b09af0dca Fix #36701: Mask pivioting doesnt honor parenting
Made mask transformation aware of parent matrix.
2013-09-11 10:06:54 +00:00
Lukas Toenne
b551476dbd Revert r60034 and proper fix for #36698 by Sergey Sharybin. NULL pointer checks should never be done in color management. Instead this makes sure the look identifier is always initialized correctly to
the default if not defined.
2013-09-11 09:02:59 +00:00
Campbell Barton
17d749eaad replace inline index lookup with BLI_findindex 2013-09-11 07:36:40 +00:00
Nathan Letwory
801b8430a2 Add read-only access to index data for current line, top line and visible lines count. 2013-09-11 07:23:23 +00:00
Campbell Barton
2f6c748bb9 fix [#36020] SmartUV Project is messy on a cube
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.

missed docstring last commit.
2013-09-11 07:10:15 +00:00
Lukas Toenne
e0b2111942 Fix #36698 Cycles MinGW64 Mike Pan scene crashes instantly. Missing pointer check in color management look access from r59945. The look_desc pointer is NULL if the look string is undefined (empty). 2013-09-11 07:07:16 +00:00
Campbell Barton
d2d1025e4a add mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d() 2013-09-11 06:56:51 +00:00
Campbell Barton
3579dfe23a interface, replace '|' with define UI_SEP_CHAR 2013-09-11 05:06:27 +00:00
Campbell Barton
90ff86a6d9 fix [#36699] ASCII-character "|" blocks parenting
don't split '|' for rna-property search buttons (but keep for operator search).
2013-09-11 04:56:35 +00:00
Campbell Barton
f81f6c5019 take the decender into account when drawing console text.
also add data types wm and mask to dataname() and unshadow var in ghost/x11
2013-09-11 04:14:27 +00:00
Campbell Barton
a4f12a3e31 fix [#36697] Topology mirror causes vertices to jump?
don't give up too early finding unique geometry by keeping track of edges with matching vertex hashes and keep checking for unique topology as long as the total of these edges keeps increasing.
2013-09-11 02:36:37 +00:00
Campbell Barton
44ec0b0aab uv-pack operator: option to rotate uv islands to fit in the optimal rectangle when packing. 2013-09-10 23:11:58 +00:00
Campbell Barton
f171f4e270 correct own recent edits, area for text line numbers drawing was too small. 2013-09-10 21:45:54 +00:00
Campbell Barton
ab8d88ac18 add angle_to_mat2 utility function. 2013-09-10 20:45:47 +00:00
Brecht Van Lommel
734eaab545 Fix #36327: cycles render layers exclude layers animation did not work well.
This is kind of another way to animate layers which is disabled, but add an
exception to make this case work.
2013-09-10 20:26:34 +00:00
Campbell Barton
92d94ccb08 misc minor changes
- make cmake osx use of -ftemplate-depth match scons.
- use array size within sizeof(), more compact.
- replace AT with __func__ where the function is unique enough.
- BLI_box_pack_2D -> 2d to match other functions.
- rename new mesh normal calculation to mesh.calc_normals_split()
2013-09-10 19:23:39 +00:00
Bastien Montagne
773ea29b4a Possible fix for MSVC compiling (grr...). 2013-09-10 15:41:01 +00:00
Bastien Montagne
135f6a72d4 Split normals API, to get per-vertex per-face normals, useful to export sharp edges in a compatible way.
Many thanks to Campbell and Brecht for reviews.
2013-09-10 15:26:12 +00:00
Bastien Montagne
44c7a87ada Update to writefile: do not save TEMPORARY or NO_COPY CD layers!
Neede for next commit (split normals API).
2013-09-10 15:24:31 +00:00
Brecht Van Lommel
e052fc9819 Fix #36271: missing (+) icon for toolbar in compositing layout in default startup.blend. 2013-09-10 13:25:39 +00:00
Brecht Van Lommel
b6bdb122c2 startup.blend: save images as RGBA by default, to avoid losing data when
forgetting to change it from RGB when painting images or saving renders.

This makes more sense in the new alpha pipeline, renders no longer contain an
alpha channel that does not match the RGB channels, so saving files as RGBA
should give the expected results when opening them in other applications.
2013-09-10 13:25:37 +00:00