Commit Graph

49420 Commits

Author SHA1 Message Date
Sv. Lockal
8a6a3e79de Fix [#31609] save .EXR defaults to uncompressed, causes segfault.
IMB_filterN now generates 32-bit int representation of float images for mipmap generation if such representation does not exist.
2012-07-25 23:28:17 +00:00
Campbell Barton
be23539a94 code cleanup: use BKE_pain_ prefix for paint funcs. also minor style edits 2012-07-25 22:37:52 +00:00
Campbell Barton
2b133b14ab mask/image viewer now works with non 1:1 image aspect, editing masks in the image viewer should be generally usable now though still some TODO's left. 2012-07-25 20:39:49 +00:00
Sergey Sharybin
67d364304c Merging r49223 through r49225 from trunk into soc-2011-tomato 2012-07-25 20:28:06 +00:00
Sergey Sharybin
06a9482986 Select Linked no works from Datablocks outliner view as well 2012-07-25 20:17:38 +00:00
Sergey Sharybin
a14f844315 Merging r49212 through r49222 from trunk into soc-2011-tomato 2012-07-25 19:46:23 +00:00
Sergey Sharybin
4ca9275b44 Implement operator to select linked data from outliner
Supports selecting using object data, material and library.

Would be nice to hide this menu item from menus appearing for
datablocks which does not support such a selection, but that
could be done separately.
2012-07-25 19:45:34 +00:00
Sergey Sharybin
b66f541b42 Separate Select Linked operator into smaller function which could be reused.
Should be no functional changes.
2012-07-25 19:45:31 +00:00
Campbell Barton
927af4ccc9 mask transform now works in the image space 2012-07-25 19:36:59 +00:00
Dalai Felinto
a9614e732c updating blenderplayer stubs after spaceimage set mask function 2012-07-25 18:42:52 +00:00
Sergey Sharybin
d2a77c07e0 Fix #32004: Up/down arrow keys can move index out of actual range of template_list
Fixed by clamping current index value to 0..list_size-1 range in list event
handling function. This shouldn't give any regressions since this clamping\
happens only after template was already displayed so items counter should be
correct here.

It is still possible to set index to meaningless value by directly changing
the index value via python, but that's not in the scope of interface engine
and not currently considered a bug.
2012-07-25 16:53:56 +00:00
Campbell Barton
41ee294618 don't pass the same value to axis_angle_to_quat() for axis & quat.
-/-This line, and those below, will be ignored--

M    mathutils_Quaternion.c
2012-07-25 16:46:46 +00:00
Sergey Sharybin
8197ae0054 Fix regression introduced in svn rev49122
Would rather have mathematical functions consistent from using
the same vector for input and output values point of view then
introducing questionable optimizations.
2012-07-25 16:37:24 +00:00
Campbell Barton
7fba5779ed match function names for clip/image spaces 2012-07-25 16:30:53 +00:00
Campbell Barton
f83ea3fa85 fix some crashes with mask/image transfor, a few more areas working now. 2012-07-25 16:03:08 +00:00
Sergey Sharybin
0051d24b23 Merging r49191 through r49211 from trunk into soc-2011-tomato 2012-07-25 15:07:47 +00:00
Sergey Sharybin
c730125f3e Proxies building progress bar used to be displayed wrong in cases
when start scene frame is not 1.
2012-07-25 15:05:50 +00:00
Campbell Barton
071a1034d6 add mask keymap to image window.
debug prints for events when --debug-events is used to help track down why a key is/isnt used.
2012-07-25 14:46:38 +00:00
Campbell Barton
d417cdc9f4 edit fix for [#32177] - drawing text isnt really needed for selections. 2012-07-25 13:55:16 +00:00
Campbell Barton
1091030c11 mask now draws in the image view, misc minor edits. 2012-07-25 13:44:59 +00:00
Bastien Montagne
c017f91089 Fix [#32177] 'Display Pivot' segfaults blender (Rigid Body Constraint + 3dview)
draw_rigid_body_pivot() didn't check it could actualy use the given ob_wire_col...

Also silenced a compiler warning, and removed (replaced) a potential dengerous pointer cast (char *[4] -> int* is not safe on 64bit machines!).
2012-07-25 12:55:55 +00:00
Campbell Barton
62187c386e mask UI for space image 2012-07-25 12:15:22 +00:00
Lukas Toenne
7eaef1068d Fix #31419, Changing Boid-Properties impossible with pinned Particle Menu.
Boid operators now retrieve the particle settings from the context directly, instead of always using the particle system (which is only needed to get to the settings anyway). When particle settings are pinned there is no particle system in the context, causing the operators to fail.
2012-07-25 12:07:19 +00:00
Lukas Toenne
1bb491348b Fix #31339, Modifying mesh destroys particle system.
The particle system modifier has to ensure tesselation before testing for topology changes. It compares the number of vertices, edges and tesselation faces to the previously stored values.

Note that this test only detects a subset of actual topology changes (where the number of elements differs), but this is a known limitation we have to live with for now.
2012-07-25 11:26:10 +00:00
Campbell Barton
e771e07fe8 image space now has a mode for view/paint/mask editing. 2012-07-25 11:25:10 +00:00
Campbell Barton
a54fc5a99d code cleanup: comment deprecated defines 2012-07-25 10:55:45 +00:00
Jeroen Bakker
8df10a4018 Defocus node.
added some maxblur optimizations. Per tile the max blur is calcualted,
will save some unneeded CPU/GPU loops
GPU: 1:09 => 0:21
CPU: 1:50 => 0:35
2012-07-25 10:46:19 +00:00
Campbell Barton
c3a8894f57 wip mask/image commit, mostly internal function & added some TODO's 2012-07-25 10:39:54 +00:00
Lukas Toenne
93f359604c Added a missing forward declaration, causing compiler error in r49192. 2012-07-25 10:37:31 +00:00
Lukas Toenne
237b8e496a Fix #32178, Adding "File Output" node crashes when a video output type is selected.
The image format for the node and sockets were not properly initialized. The file output node only supports image types (not movies), so it needs to check for proper format type after copying from the render settings.
2012-07-25 10:25:53 +00:00
Campbell Barton
f2d9e2410c move ED_image functions into their own file. 2012-07-25 10:15:24 +00:00
Campbell Barton
7f354402a7 svn merge ^/trunk/blender -r49186:49190 2012-07-25 09:06:44 +00:00
Campbell Barton
3af938918a fix annoying bug where image open from ID template didn't open in the existing images path. 2012-07-25 09:04:59 +00:00
Mitchell Stokes
8f1666ee56 BGE: A better fix for using the Action Actuator with the Actuator Sensor. This one still allows frame properties to be updated after receiving a negative pulse. This also fixes bug [#32179] "Action Actuator in Loop End stops updating the Frame Property after no longer receives positive signal" reported by Dalai. 2012-07-25 04:29:48 +00:00
Campbell Barton
65f94b8c0b svn merge ^/trunk/blender -r49177:49186 2012-07-24 21:11:22 +00:00
Campbell Barton
99947eb744 change behavior of ediutmesh separate not to cleanup geometry - its not really needed and caused a bug with some of my recent edits.
If its important it could be added back but dont think its worthwhile.
2012-07-24 21:07:29 +00:00
Campbell Barton
d9dbea1836 move mask and draw settings into its own struct to be shared between spaces. 2012-07-24 20:33:55 +00:00
Sergey Sharybin
de6d480f71 Tomato Cycles: fix for memory overflow issue
This fixes memory overflow caused by creating render result every time
RenderResult is creating when updating sample and not being freed until
tile is fully rendered.

Solved in probably not best way -- RenderResult is being stored in
RenderBuffers, so it's creating only once.

This solves memory issues, but while was looking into this issue
discovered dramatic slowdown caused by samples update in some files
from mango svn.

Solving this slowdown is becoming first priority from now on.
2012-07-24 20:05:00 +00:00
Campbell Barton
8509e94d3a initial commit for supporting masks in the image view, currently active seq strip is used as the mask source.
also unify mask drawing code for clip/sequencer/image
2012-07-24 19:29:24 +00:00
Campbell Barton
f7a1819559 svn merge ^/trunk/blender -r49167:49175 2012-07-24 12:38:37 +00:00
Campbell Barton
c67e910df6 fix/workaround for glitch with node editing active texture bug - where a node texture in a group could get stuck and the buttons UI wouldnt update to other active nodes.
Files saved with this error will still give problems, toggling group edit will fix.
2012-07-24 12:35:41 +00:00
Sergey Sharybin
a6d62e9e87 Correction to previous commit -- make sure float buffer is not being changed
while color management transformations are running.
2012-07-24 12:18:40 +00:00
Lukas Toenne
dee1d86e65 Fix for RNA struct registration: the bpy_class_validate function would only check the immediate functions/properties of the pointer struct type, but not potential base structs. Now it first validates the base struct recursively before the actual properties of the registered class.
Does not have any effect for current registerable types (Operator, Menu, Panel, etc.), since none of those actually have a base struct, but will be required for future types with an actual hierarchy (custom nodes).
2012-07-24 12:00:02 +00:00
Sergey Sharybin
a0bdc54572 Color management: fix memory corruption when using border rendering
Image's get render result function used to modify ImBuf directly,
without making needed invalidates to color management cache when
it's needed.
2012-07-24 11:49:21 +00:00
Campbell Barton
23c4026c3f warn when getting a context member fails because of type mismatch 2012-07-24 10:28:29 +00:00
Campbell Barton
7949f0057f generalize mask poll functions and sequencer mask code. 2012-07-24 09:53:29 +00:00
Sergey Sharybin
69f7e96c5c Hopefully Blender compiles again with MSVC
Seems to be a conflict between different areas defining
round() function.
2012-07-24 09:08:27 +00:00
Sergey Sharybin
a0403fe2fb Merging r49149 through r49167 from trunk into soc-2011-tomato 2012-07-24 09:03:40 +00:00
Sergey Sharybin
d1db16b5d3 Fix corrupted frames producing by fog glare node
Seems to be simple non-initialized buffer used in math, but additional
check would be welcome here.

At least now result doesn't seems to be corrupted and seems to behaving
the same way as non-tile compositor.
2012-07-24 09:00:58 +00:00
Dalai Felinto
752e14ce15 no need for renaming actions that are not linked anywhere
talked with Joshua Leung (aligorith) and he agreed on that
2012-07-24 07:08:33 +00:00