9 years agoCommitting patch "[#27676] Change window size/resolution in realtime" by me.
Mitchell Stokes [Sun, 22 Jan 2012 20:25:25 +0000 (20:25 +0000)]
Committing patch "[#27676] Change window size/resolution in realtime" by me.

This patch allows the user to change the size of the window (or the resolution in fullscreen mode) using the new bge.render.setWindowSize() method. This only works in the Blenderplayer since it doesn't make a whole lot of sense for the embedded player.

9 years agorestrict stitching of same island uvs to only midpoint, without snapping case
Antony Riakiotakis [Sun, 22 Jan 2012 20:01:33 +0000 (20:01 +0000)]
restrict stitching of same island uvs to only midpoint, without snapping case

9 years agominor edit for operator error macro so it can return different values.
Campbell Barton [Sun, 22 Jan 2012 19:52:41 +0000 (19:52 +0000)]
minor edit for operator error macro so it can return different values.

9 years agoerror in outliner parent patch - was using set string on an enum property.
Campbell Barton [Sun, 22 Jan 2012 18:59:06 +0000 (18:59 +0000)]
error in outliner parent patch - was using set string on an enum property.

9 years agoAdd weight preview to WeightVG modifiers, and first, simple/basic refactor of how...
Bastien Montagne [Sun, 22 Jan 2012 17:54:23 +0000 (17:54 +0000)]
Add weight preview to WeightVG modifiers, and first, simple/basic refactor of how modifiers can generate preview.

User side:
* Preview for DynamicPaint should keep the same behavior (for now). Weight preview should be somawhat quicker, though.
* Preview for WeightVG modifiers is only active in WeightPaint mode, and if the affected vgroup is the active one.
* Last active preview modifier in stack wins!

Note: that modifier preview topic is yet to be further refined, quite raw/incomplete for now.

Dev side:
* Removed use of MOD_DPAINT_PREVIEW_READY in DynamicPaint code (seems unecessary, and if it was, should be of more general scope).
* Added eModifierTypeFlag_UsesPreview to ModifierTypeFlag, for modifiers that can generate some preview data.
* Added three new modifier funcs, to handle preview modifiers in draw code / mod stack.
* For weights preview: added the generic DM_update_weight_mcol func, which can update WEIGHT_MCOL layer with either a given array of weights (currently used by DynamicPaint only), or from current active vgroup(s).

So now, draw code is fully generic (i.e. no more modifier-type checking in it). Mod stack code is generic to some extent, but will need more work.

9 years agoQuiet warnings in text editor
Campbell Barton [Sun, 22 Jan 2012 17:26:56 +0000 (17:26 +0000)]
Quiet warnings in text editor

9 years agouse inline BLI_math functions for dot product and length calculation.
Campbell Barton [Sun, 22 Jan 2012 17:20:37 +0000 (17:20 +0000)]
use inline BLI_math functions for dot product and length calculation.

9 years agoFix for the Sculpt UI (revert part of 43535 by nicholasbishop)
Thomas Dinges [Sun, 22 Jan 2012 16:29:10 +0000 (16:29 +0000)]
Fix for the Sculpt UI (revert part of 43535 by nicholasbishop)
* Such labels like for "use_space_atten" should not be in the UI, thats too overkill. Toolbar is meant to be small in size.

9 years agoFix #29935: missing cycles update/crash when removing world datablock form scene.
Brecht Van Lommel [Sun, 22 Jan 2012 13:56:39 +0000 (13:56 +0000)]
Fix #29935: missing cycles update/crash when removing world datablock form scene.

9 years agoFix missing shadows with cycles world sample as lamp option, my mistake in
Brecht Van Lommel [Sun, 22 Jan 2012 13:26:59 +0000 (13:26 +0000)]
Fix missing shadows with cycles world sample as lamp option, my mistake in
tweaking patch.

9 years agoBugfix for r.43592
Joshua Leung [Sun, 22 Jan 2012 11:59:30 +0000 (11:59 +0000)]
Bugfix for r.43592

A typo (?) meant that enum menus, such as the Set Parent (Ctrl P) menu would get
shown with empty string labels.

9 years agoPatch [#27790] Drag and drop parenting in outliner
Joshua Leung [Sun, 22 Jan 2012 10:20:30 +0000 (10:20 +0000)]
Patch [#27790] Drag and drop parenting in outliner

Submitted by Perry Parks (scuey)

From the patch:
This patch enables drag and drop parenting for objects in the outliner.

Drag and drop is supported for a selection of multiple objects as well. Also,
all of the "special" parenting tasks (armature, curve, lattice) are possible
through the usual parenting context menus. For example, drag a mesh object onto
an armature and you are prompted for using bone envelopes, automatic weights,

Demonstration on Vimeo:

9 years agoFix a crasher in WeightVG modifiers.
Bastien Montagne [Sun, 22 Jan 2012 10:14:01 +0000 (10:14 +0000)]
Fix a crasher in WeightVG modifiers.

Problem was, if no vertices were ever added to one of the obect's vgroups, there is no CD_DEFORMVERT layer, even though there might be several valid vgroup indices... Odd no one noticed that earlier.

Many thanks to miikah for finding that bug!

10 years agoPatch [#28608] Add search match colour to theme settings
Joshua Leung [Sun, 22 Jan 2012 06:10:21 +0000 (06:10 +0000)]
Patch [#28608] Add search match colour to theme settings
Submitted by Shane Ambler (sambler)

From patch description:
As a follow on from #23443 - committed in r40066 I have added the outliner
filter match highlight colour to the theme settings.

Default colour is a light green matching what was originally hard coded.

10 years agoCommitting patch "[#29763] Adding an active_events property to SCA_PythonKeyboard...
Mitchell Stokes [Sun, 22 Jan 2012 05:45:56 +0000 (05:45 +0000)]
Committing patch "[#29763] Adding an active_events property to SCA_PythonKeyboard and SCA_PythonMouse"

Here is the description:
As the summary says, this patch adds a new event to both SCA_PythonKeyboard and SCA_PythonMouse. This property is similar to the events property that both have, but it only returns events which are not KX_NO_INPUTSTATUS. This moves the "no input" check from Python to C, which gave my input handling code a 2x speed up. Python sucks (performance-wise) with iterating lists and SCA_PythonKeyboard has close to 200 events (I think something like 177, but I don't know for sure).

10 years agoBugfix [#29869] NLA editor keeps resetting my extrapolation mode every time I
Joshua Leung [Sun, 22 Jan 2012 04:39:33 +0000 (04:39 +0000)]
Bugfix [#29869] NLA editor keeps resetting my extrapolation mode every time I
edit a strip in the timeline

Tweaked the behaviour of the overwritting of extrapolation mode so that it is
less destructive when the problems it sets out to fix aren't likely to occur
(namely a top strip blocking everything below it due to extend backwards).

10 years agoBugfix [#28468] Cannot enter "Tweak mode" on mutiple objects at the same time,
Joshua Leung [Sun, 22 Jan 2012 04:30:52 +0000 (04:30 +0000)]
Bugfix [#28468] Cannot enter "Tweak mode" on mutiple objects at the same time,
though it initially works

Problem was that in the past it was possible to have multiple strips/tracks
tagged as "active", but now after getting a correct implementation, we can no
longer have that, and thus entering Tweak Mode only works on the last selected

However this is problematic in cases when you want to tweak the keyframes of
several objects (which may only have a single strip each) in order to get them
to line up with each other. This hack caters for this case (selecting multiple
strips from the same AnimData block is still impossible and insane/illogical and
is not allowed).

This may have implications for some future tools which make assumptions about
certain aspects of NLA state. However, it shouldn't cause too many problems
(hopefully ;)

10 years agofix for own error in recent paint refactor, subtract mode was broken.
Campbell Barton [Sun, 22 Jan 2012 04:30:11 +0000 (04:30 +0000)]
fix for own error in recent paint refactor, subtract mode was broken.

10 years agoBugfix [#29822] Driver's target field doesn't update on Bone rename
Joshua Leung [Sun, 22 Jan 2012 04:12:30 +0000 (04:12 +0000)]
Bugfix [#29822] Driver's target field doesn't update on Bone rename

This only affected non-object drivers, since the renaming was only getting
called on object-animdata.

10 years agoFluidsim - Restoring simulation speed control (ZanQdo request)
Joshua Leung [Sun, 22 Jan 2012 03:42:49 +0000 (03:42 +0000)]
Fluidsim - Restoring simulation speed control (ZanQdo request)

This commit restores support for freezing or speeding up physics sims. Animate
the "Speed" parameter under Domain->Time, which controls a multiplier factor for
the rate at which the sim proceeds (i.e. the old "Fac-Tim" setting).

* Subversion bumped to 4 to patch up defaults for new value so that old sim
files will still run correctly
* Names/descriptions could do with some tweaking
* Porting this across was not that obvious since quite a bit of stuff had
changed (as in, been cleaned up). However, from tests so far, it seems to work

10 years agoreduce operator lookups in the UI (could do 4 hash lookups per button).
Campbell Barton [Sun, 22 Jan 2012 03:30:07 +0000 (03:30 +0000)]
reduce operator lookups in the UI (could do 4 hash lookups per button).

10 years agocucumber merge: world scaling + video texture constants
Dalai Felinto [Sun, 22 Jan 2012 03:21:28 +0000 (03:21 +0000)]
cucumber merge: world scaling + video texture constants
revisions: 38166,38167,38177,38179,38180,38187,38242

To be implemented after merge:
1) add pydocs(rst) for the video texture new defines
2) see if a NodeSetLocalMatrix would fit well

#43439 by kupoman
Changing the worldTransform and localTransform python attributes to use BLI_math to simplify the code

#38242 by kupoman
Adding the constants SOURCE_ERROR, SOURCE_EMPTY, SOURCE_READY, SOURCE_PLAYING, SOURCE_STOPPED to the video texture module. Updates to the documentation will follow after a merge with trunk

#38187 by kupoman
Updates to the documentation to reflect that worldScale is now writable, and added localTransform and worldTransform to KX_GameObject.

#38180 by kupoman
The Transform attribute of KX_GameObject was based on world space data. I converted that one to worldTransform, and added a localTransform for local space transform information.

#38179 by kupoman
Fixed the transform attribute of KX_GameObject's set method to properly deal with negative scaling.

#38177 by kupoman
Updated the transform property on KX_GameObject so that it is now read/write, and added the corresponding set method. Also simplified the get method by calling GetOpenGLMatrix instead of making the matrix myself.

#38167 by kupoman
Adding a read only transform attribute to KX_GameObject that returns a 4x4 matrix representing the object's transformations.

#38166 by kupoman
Adding a worldScale attribute to KX_GameObject. This attribute scales the object independently of its parent's scale.

10 years agofix for 'next' being set twice in the for loop from r43588
Campbell Barton [Sun, 22 Jan 2012 00:53:53 +0000 (00:53 +0000)]
fix for 'next' being set twice in the for loop from r43588

10 years agopatch: 'set the right Action Actuator when duplicating an object' by Daniel Macedo
Dalai Felinto [Sat, 21 Jan 2012 23:57:28 +0000 (23:57 +0000)]
patch: 'set the right Action Actuator when duplicating an object' by Daniel Macedo
bug and patch not in tracker. little fix by me (replace while loop by for(...;act;...). Thanks Daniel ;)

10 years agofix for memory leak displaying shortcuts to buttons which use allocated string, also...
Campbell Barton [Sat, 21 Jan 2012 22:42:09 +0000 (22:42 +0000)]
fix for memory leak displaying shortcuts to buttons which use allocated string, also de-duplocate this code which had this error in 2 places.

noticed while testing 1023 length paths.

10 years agostyle chang, made mainly because I wanted to be able to add breakpoints to MEM_freeN...
Campbell Barton [Sat, 21 Jan 2012 22:00:40 +0000 (22:00 +0000)]
style chang, made mainly because I wanted to be able to add breakpoints to MEM_freeN calls which were on the same line as the if's.

10 years agoFix for missing NULL check in socket default_value free function. Some sockets (curre...
Lukas Toenne [Sat, 21 Jan 2012 16:36:06 +0000 (16:36 +0000)]
Fix for missing NULL check in socket default_value free function. Some sockets (currently only cycles shader sockets) don't actually have a default_value pointer.

10 years agochange filepath limit from 240 to 1024
Campbell Barton [Sat, 21 Jan 2012 14:54:53 +0000 (14:54 +0000)]
change filepath limit from 240 to 1024

10 years agoBetter api use for paths.
Campbell Barton [Sat, 21 Jan 2012 14:48:07 +0000 (14:48 +0000)]
Better api use for paths.
Avoid possibly copy past buffer.

10 years agoAdded DNA_DEPRECATED attribute to some old data in bNodeSocket. DNA_DEPRECATED is...
Lukas Toenne [Sat, 21 Jan 2012 11:15:01 +0000 (11:15 +0000)]
Added DNA_DEPRECATED attribute to some old data in bNodeSocket. DNA_DEPRECATED is disabled in writefile.c now to allow forward compatibility code writing to deprecated member data.

10 years agoformatting edits (<120 line length), remove invalid 'defaults' keyword arg from docs.
Campbell Barton [Sat, 21 Jan 2012 10:27:24 +0000 (10:27 +0000)]
formatting edits (<120 line length), remove invalid 'defaults' keyword arg from docs.

10 years agoFix [#29940] Stretch To constraint breaks scaling in Transform constraint.
Bastien Montagne [Sat, 21 Jan 2012 09:41:21 +0000 (09:41 +0000)]
Fix [#29940] Stretch To constraint breaks scaling in Transform constraint.

Compute of dist between ob/bone and target was quite odd and causing that bug.

10 years agoformatted snapquats table so entries line up, rounded to 7 significant digits (fp32...
Mike Erwin [Sat, 21 Jan 2012 05:27:25 +0000 (05:27 +0000)]
formatted snapquats table so entries line up, rounded to 7 significant digits (fp32 respects ~6), no functional change

10 years agotidy up ndof handling code -- whitespace, comments, ndof->rvec[0] to ndof->rx, etc...
Mike Erwin [Sat, 21 Jan 2012 03:37:44 +0000 (03:37 +0000)]
tidy up ndof handling code -- whitespace, comments, ndof->rvec[0] to ndof->rx, etc. no functional changes

10 years agoquiet warnings and possible NULL checking crash fix for indentation functions.
Campbell Barton [Fri, 20 Jan 2012 23:03:41 +0000 (23:03 +0000)]
quiet warnings and possible NULL checking crash fix for indentation functions.

10 years agomodify number button copy/paste to work as if you enter the button, select text,...
Campbell Barton [Fri, 20 Jan 2012 22:32:47 +0000 (22:32 +0000)]
modify number button copy/paste to work as if you enter the button, select text, type into another button the same value.

This means you can copy/paste units and python expressions.

10 years agofix 2 bugs
Campbell Barton [Fri, 20 Jan 2012 22:09:30 +0000 (22:09 +0000)]
fix 2 bugs
- box packing wasn't flagging out the right free corner of a vertex in some cases.
- tex_space_curve wasn't counting quad displists properly.

10 years agoSkip subsurf normal allocation/calculation when not needed.
Nicholas Bishop [Fri, 20 Jan 2012 19:27:04 +0000 (19:27 +0000)]
Skip subsurf normal allocation/calculation when not needed.

CCGSubsurf has already a function to disable calculation of normals,
but seems it wasn't used. This patch changes subsurf UV and
subsurf_calculate_limit_positions() to not calculate normals, and also
not allocate space for them.

Should be no functional changes, just a small speedup/less memory use
during subdivision for these cases.

Code review link:

10 years agouse property definitions more consistant with other addons in trunk. (no functional...
Campbell Barton [Fri, 20 Jan 2012 18:31:23 +0000 (18:31 +0000)]
use property definitions more consistant with other addons in trunk. (no functional change)

10 years agoTry fixing modifier keys not working correctly for uv sculpting.
Antony Riakiotakis [Fri, 20 Jan 2012 18:03:55 +0000 (18:03 +0000)]
Try fixing modifier keys not working correctly for uv sculpting.

10 years agoSample as Lamp option for world shaders, to enable multiple importance sampling.
Brecht Van Lommel [Fri, 20 Jan 2012 17:49:17 +0000 (17:49 +0000)]
Sample as Lamp option for world shaders, to enable multiple importance sampling.

By default lighting from the world is computed solely with indirect light
sampling. However for more complex environment maps this can be too noisy, as
sampling the BSDF may not easily find the highlights in the environment map
image. By enabling this option, the world background will be sampled as a lamp,
with lighter parts automatically given more samples.

Map Resolution specifies the size of the importance map (res x res). Before
rendering starts, an importance map is generated by "baking" a grayscale image
from the world shader. This will then be used to determine which parts of the
background are light and so should receive more samples than darker parts.
Higher resolutions will result in more accurate sampling but take more setup
time and memory.

Patch by Mike Farnsworth, thanks!

10 years agoMinor fix for socket default value conversion. The switch statement would not break...
Lukas Toenne [Fri, 20 Jan 2012 16:13:26 +0000 (16:13 +0000)]
Minor fix for socket default value conversion. The switch statement would not break correctly.

10 years agocomment some dead assibnment and set dummy values for image profile conversion in...
Campbell Barton [Fri, 20 Jan 2012 15:18:57 +0000 (15:18 +0000)]
comment some dead assibnment and set dummy values for image profile conversion in case of invalid input.

10 years agoquiet warnings for using uninialized color var in ED_image_draw_info().
Campbell Barton [Fri, 20 Jan 2012 14:33:03 +0000 (14:33 +0000)]
quiet warnings for using uninialized color var in ED_image_draw_info().

10 years agoCleanup of default_value handling in node sockets.
Lukas Toenne [Fri, 20 Jan 2012 13:27:54 +0000 (13:27 +0000)]
Cleanup of default_value handling in node sockets.

The structs stored in the anonymous void *default_value in bNodeSocket are now handled completely inside node_socket.c. All allocation/freeing/duplicating for this has been replaced by the appropriate calls to generic API functions (declared in NOD_socket.h).

This will make the default value handling more reliable for future node socket code. Group socket copying and value conversion has also been moved into the generic socket API file.

10 years agofix for scons/linux with opencollada debug libs
Campbell Barton [Fri, 20 Jan 2012 12:32:11 +0000 (12:32 +0000)]
fix for scons/linux with opencollada debug libs

10 years agoFix #27120: Bake to image used for rendering glitch (bake feedback loop)
Sergey Sharybin [Fri, 20 Jan 2012 07:43:46 +0000 (07:43 +0000)]
Fix #27120: Bake to image used for rendering glitch (bake feedback loop)

Detect feedback loop and do not bake to images detected in this loop and show
nice warning message in such cases.

It's a way which wouldn't overcomplicate code trying to duplicate images and so
without real benefit.

10 years ago- Fix for commit 43551 which caused a linking error in blenderplayer.
Andrew Hale [Fri, 20 Jan 2012 05:11:42 +0000 (05:11 +0000)]
- Fix for commit 43551 which caused a linking error in blenderplayer.
- Minor clean up for commit 43551.

10 years agomisc changes from bmesh, syncing across to trunk, no functional changes
Campbell Barton [Fri, 20 Jan 2012 02:24:01 +0000 (02:24 +0000)]
misc changes from bmesh, syncing across to trunk, no functional changes

10 years ago- Added functions to remove mesh vertices, edges and faces. These functions remove...
Andrew Hale [Fri, 20 Jan 2012 02:10:09 +0000 (02:10 +0000)]
- Added functions to remove mesh vertices, edges and faces. These functions remove a specified number of elements from the end of their respective arrays. For example, removing two vertices removes the last two vertices of the mesh.
- Minor fixes to descriptions of add edge and add face functions.

10 years agoSmall cleanup to parameters of _getSubSurf().
Nicholas Bishop [Fri, 20 Jan 2012 01:43:49 +0000 (01:43 +0000)]
Small cleanup to parameters of _getSubSurf().

Removed the unused third argument and changed useAging and useArena to
named flags.

10 years agosmart stitch
Antony Riakiotakis [Fri, 20 Jan 2012 00:02:48 +0000 (00:02 +0000)]
smart stitch
* refactoring, separate common functionality to functions.
* enable each uv to check independently for other stitchable uvs. This allows to limit stitch uvs belonging to the same vertex, while previously this was impossible.
* made changes to island rotation when calculated from sole uvs when using midpoint stitch. It should now be evenly distributed across islands.

There are still some glitches with vertices that have multiple uvs per island for the snap island + midpoint stitch combination. The solution is to precalculate the static island rotation/translation in this case. If I haven't managed to make this work correctly I may turn this combination off before release. It's more like an extra feature than really necessary.

10 years agoMinor code enhancement (replace for loops with while's, and avoid multiple checks...
Bastien Montagne [Thu, 19 Jan 2012 19:09:59 +0000 (19:09 +0000)]
Minor code enhancement (replace for loops with while's, and avoid multiple checks to get good face vertex index). No functional changes.

10 years agoAdd missing labels to sculpt/paint sliders.
Nicholas Bishop [Thu, 19 Jan 2012 18:22:55 +0000 (18:22 +0000)]
Add missing labels to sculpt/paint sliders.

Thanks Sergey for pointing out

10 years agoRemesh Modifier UI:
Thomas Dinges [Thu, 19 Jan 2012 17:30:29 +0000 (17:30 +0000)]
Remesh Modifier UI:
* Some tweaks to the modifier UI
* Hide sharpness property, instead of greying out.
The policy is to use greying out when a property depends on a boolean, if it depends on an enum item, hide it.

10 years agoFix issue in recent color commits, was still doing a multiplication by 255 too
Brecht Van Lommel [Thu, 19 Jan 2012 16:22:22 +0000 (16:22 +0000)]
Fix issue in recent color commits, was still doing a multiplication by 255 too
many, also don't check uchar range after casting to int, this can still cause
overflow with large float values.

10 years agosimplify clipping loop
Campbell Barton [Thu, 19 Jan 2012 16:12:40 +0000 (16:12 +0000)]
simplify clipping loop

10 years agostyle edits - < 120 line width
Campbell Barton [Thu, 19 Jan 2012 16:04:44 +0000 (16:04 +0000)]
style edits - < 120 line width

10 years agosize for static string was too small, we should really have dynamic sized strings...
Campbell Barton [Thu, 19 Jan 2012 15:11:22 +0000 (15:11 +0000)]
size for static string was too small, we should really have dynamic sized strings to rna functions.

10 years agoyRemove missed/unused "tweak" property from keymap for outliner's border select
Sergey Sharybin [Thu, 19 Jan 2012 11:27:00 +0000 (11:27 +0000)]
yRemove missed/unused "tweak" property from keymap for outliner's border select

10 years agoDynamic Paint:
Miika Hamalainen [Thu, 19 Jan 2012 11:13:41 +0000 (11:13 +0000)]
Dynamic Paint:
* Added "Project" option also for "Volume + Proximity" brush type.

10 years agouse color conversions functions in more places.
Campbell Barton [Thu, 19 Jan 2012 10:04:51 +0000 (10:04 +0000)]
use color conversions functions in more places.
also add rgba_float_to_uchar, rgba_uchar_to_float

10 years agoBaked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave...
Daniel Genrich [Thu, 19 Jan 2012 09:58:25 +0000 (09:58 +0000)]
Baked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave "OK")

10 years agorename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float...
Campbell Barton [Thu, 19 Jan 2012 09:09:00 +0000 (09:09 +0000)]
rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).

10 years agoadd utility functions linearrgb_to_srgb_uchar4,
Campbell Barton [Thu, 19 Jan 2012 08:22:23 +0000 (08:22 +0000)]
add utility functions linearrgb_to_srgb_uchar4,
linearrgb_to_srgb_uchar3, was being done inline.

10 years agoFix for building in release mode with scons.
Nicholas Bishop [Thu, 19 Jan 2012 07:12:30 +0000 (07:12 +0000)]
Fix for building in release mode with scons.

Change given thumbs up from JesterKing.

10 years agoadded support for the 3Dconnexion SpaceMouse Pro -- tested on Linux w/ spacenavd...
Mike Erwin [Thu, 19 Jan 2012 06:14:50 +0000 (06:14 +0000)]
added support for the 3Dconnexion SpaceMouse Pro -- tested on Linux w/ spacenavd, Macs need latest driver (Intel only (grumble)), Windows should be good as well but have not tested

10 years agoRemove a couple more unneeded variables from paint cursor drawing.
Nicholas Bishop [Thu, 19 Jan 2012 04:13:58 +0000 (04:13 +0000)]
Remove a couple more unneeded variables from paint cursor drawing.

10 years agoFix a minor RNA warning.
Nicholas Bishop [Thu, 19 Jan 2012 04:04:05 +0000 (04:04 +0000)]
Fix a minor RNA warning.

function warning.

10 years agoCouple minor fixes for DM_debug_print().
Nicholas Bishop [Thu, 19 Jan 2012 04:00:27 +0000 (04:00 +0000)]
Couple minor fixes for DM_debug_print().

Fix a gcc warning by not using the DM_debug_info string as the format
string, also free the string after printing.

10 years agoRemove some unused alpha code in paint_cursor.
Nicholas Bishop [Thu, 19 Jan 2012 04:00:03 +0000 (04:00 +0000)]
Remove some unused alpha code in paint_cursor.

10 years agoRemove stroke parameter from PaintStroke's StrokeGetLocation callback.
Nicholas Bishop [Thu, 19 Jan 2012 03:13:01 +0000 (03:13 +0000)]
Remove stroke parameter from PaintStroke's StrokeGetLocation callback.

Only affected sculpt.

10 years agoMove paint's WM paint cursor code into a new file.
Nicholas Bishop [Thu, 19 Jan 2012 02:06:09 +0000 (02:06 +0000)]
Move paint's WM paint cursor code into a new file.

The paint cursor code is fairly muddled still and needs futher cleanup
(commented in the new file.) Over half the paint_stroke code was just
called from the cursor draw function.

There should be no functional changes from this.

10 years agodebug function DM_debug_info / DM_debug_print, with access from python
Campbell Barton [Thu, 19 Jan 2012 00:18:25 +0000 (00:18 +0000)]
debug function DM_debug_info / DM_debug_print, with access from python
through Object.dm_info('SOURCE/DEFORM/FINAL')

this is to help tracking down issues with modifiers where loosing data
layers between modifiers can cause bugs, also to helo with comparing
bmesh/trunk's modifier stack.

10 years agopatch [#29679] Expose connected logic bricks from python
Dalai Felinto [Wed, 18 Jan 2012 22:42:57 +0000 (22:42 +0000)]
patch [#29679] Expose connected logic bricks from python
it exposes sensor.controllers and controller.actuators
this is how the data is exposed in blender.

to have controller.sensors or actuator.controllers is not that straightforward

10 years agoFix #29922: NaN pixels due to bump map in degenerate case.
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:19 +0000 (22:36 +0000)]
Fix #29922: NaN pixels due to bump map in degenerate case.

10 years agoCode cleanup: remove some unused code.
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:16 +0000 (22:36 +0000)]
Code cleanup: remove some unused code.

10 years agoFix small code issue pointed out by nico_ga, was doing negation on unsigned type,
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:12 +0000 (22:36 +0000)]
Fix small code issue pointed out by nico_ga, was doing negation on unsigned type,
didn't seem to break anything though.

10 years agoallow building without xinput again
Campbell Barton [Wed, 18 Jan 2012 22:32:33 +0000 (22:32 +0000)]
allow building without xinput again

10 years agopatch [#29924] Border select tool implementation for the outliner
Campbell Barton [Wed, 18 Jan 2012 21:12:51 +0000 (21:12 +0000)]
patch [#29924] Border select tool implementation for the outliner
from Perry Parks (scuey), with edits.

- select row rather than icons.
- adjust outliner selection rather than object selection.

10 years agofix [#27589] Random crash with python UI
Campbell Barton [Wed, 18 Jan 2012 19:50:44 +0000 (19:50 +0000)]
fix [#27589] Random crash with python UI

This script was defining an operator within the panels draw function, while its possible to support this its really asking for trouble.

the fix is to raise an error when this happens.

also fix crash passing non classes to register_class/unregister_class

10 years agoCurve points of tracking curves now can be grabbed to smooth spikes
Sergey Sharybin [Wed, 18 Jan 2012 16:45:02 +0000 (16:45 +0000)]
Curve points of tracking curves now can be grabbed to smooth spikes

Curve points of tracks curves now can be selected for X and Y channels
separately and can be moved along Y axis of curve viewer, points currently
can't change frame they belong to. This allows to smooth spikes caused by
unwanted marker jump.

Also fixed some mistakes in cancel transform in cases when locked tracks
were being trying to be moved; fixed incorrect calculation of marker speed
for curve drawing.

10 years agoFix #29918: Set Scale does not work the second time
Sergey Sharybin [Wed, 18 Jan 2012 11:41:35 +0000 (11:41 +0000)]
Fix #29918: Set Scale does not work the second time

Issue was caused by recently added operator presets stuff.

10 years agoFix #25581: No pressure sensitivity in sculpt mode
Sergey Sharybin [Wed, 18 Jan 2012 11:25:30 +0000 (11:25 +0000)]
Fix #25581: No pressure sensitivity in sculpt mode

Tablet mode (stylus/eraser) wasn't properly set when pen was already hovering over
tablet surface when opening blender (i.e. in cases when blender was opened using
stylus tap).

Issue resolved by setting tablet mode when handling tablet's motion event too.

10 years agoedit to r43487
Campbell Barton [Wed, 18 Jan 2012 11:10:02 +0000 (11:10 +0000)]
edit to r43487

- make red outline more obvious (was hard to see when the camera was selected)
- remove text, red-alert text IMHO should only be used when something is wrong (example - its used when FPS cant keep up), but this is just information.
  realize out UI isnt dealing well with added view3d options but dont think its good to solve by displaying options as text overlay.
  red outline for the camera is just a hint which users notice when enabling the camera, think its acceptable.

10 years agosmall usability edit, now there is some feedback on when the camera is locked to...
Michael Fox [Wed, 18 Jan 2012 10:41:38 +0000 (10:41 +0000)]
small usability edit, now there is some feedback on when the camera is locked to view.

A warnign will now appear in the top left corner and the camera outline becomes red, this warning only appears in camera view

10 years agoghost tests weren't building and added some comments to ghost docs.
Campbell Barton [Wed, 18 Jan 2012 10:16:39 +0000 (10:16 +0000)]
ghost tests weren't building and added some comments to ghost docs.

10 years agocleanup for redefined vars
Campbell Barton [Wed, 18 Jan 2012 06:55:51 +0000 (06:55 +0000)]
cleanup for redefined vars

10 years agopicky cleanup to use of bpy.types
Campbell Barton [Wed, 18 Jan 2012 06:11:56 +0000 (06:11 +0000)]
picky cleanup to use of bpy.types

10 years agode-duplicate paint parent class, added new py module for common paint UI classes...
Campbell Barton [Wed, 18 Jan 2012 05:54:19 +0000 (05:54 +0000)]
de-duplicate paint parent class, added new py module for common paint UI classes/funcs --- since we'll likely have more of these.

10 years agofix size slider not working for image space brushes (uv sculpt and image paint)....
Antony Riakiotakis [Wed, 18 Jan 2012 00:41:39 +0000 (00:41 +0000)]
fix size slider not working for image space brushes (uv sculpt and image paint). This is due to not checking if unified settings are active as per recent commit. Reused the space_view3D PaintPanel utility class slightly modified for the image space to do the checks. I am not very happy with the duplication but I decided to keep it as is since I change bl_space_type and bl_region_type from the original class. Reviewed by Nicholas Bishop.

10 years agoremove ARB_texture_gather from bicubic bump map dependencies. It will be needed when...
Antony Riakiotakis [Wed, 18 Jan 2012 00:03:09 +0000 (00:03 +0000)]
remove ARB_texture_gather from bicubic bump map dependencies. It will be needed when/if monochrome images are supported

10 years agofix [#29914] paste text into blender causes crash
Sv. Lockal [Tue, 17 Jan 2012 19:03:18 +0000 (19:03 +0000)]
fix [#29914] paste text into blender causes crash

10 years agoUpdated Carve bundling script and patches
Sergey Sharybin [Tue, 17 Jan 2012 18:47:02 +0000 (18:47 +0000)]
Updated Carve bundling script and patches

10 years agoerror in own recent commit
Campbell Barton [Tue, 17 Jan 2012 18:32:14 +0000 (18:32 +0000)]
error in own recent commit

10 years agoFix carve compile error with gcc 4.6, patch by Stephen McQuay.
Brecht Van Lommel [Tue, 17 Jan 2012 18:29:46 +0000 (18:29 +0000)]
Fix carve compile error with gcc 4.6, patch by Stephen McQuay.

10 years agomisc small changes and bmesh support for testing script
Campbell Barton [Tue, 17 Jan 2012 18:01:16 +0000 (18:01 +0000)]
misc small changes and bmesh support for testing script

10 years agopep8 edits, also remove unused vars
Campbell Barton [Tue, 17 Jan 2012 17:57:20 +0000 (17:57 +0000)]
pep8 edits, also remove unused vars

10 years agoPEP8 complaint changes
Sergey Sharybin [Tue, 17 Jan 2012 17:27:18 +0000 (17:27 +0000)]
PEP8 complaint changes

10 years agoWhitespace tabs vs. spaces consistency changes
Sergey Sharybin [Tue, 17 Jan 2012 17:26:58 +0000 (17:26 +0000)]
Whitespace tabs vs. spaces consistency changes