Jason Hays [Fri, 29 Jul 2011 17:57:46 +0000 (17:57 +0000)]
Merged 38568-38822
Jason Hays [Fri, 29 Jul 2011 17:36:49 +0000 (17:36 +0000)]
'Fix Deforms' op added to weight paint tools to smooth (remove/reduce) spiking caused by bones by altering vgroup weights
--it's still really simplistic (and slow!) so don't try fixing an entire mesh! xD
Also, don't use it on a mesh with a mirror modifier yet, just noticed that it does both vertices instead of one.
Minor UI text update for Vertex Masking
Lukas Toenne [Fri, 29 Jul 2011 07:14:03 +0000 (07:14 +0000)]
When relinking node group outputs from sockets of different type, automatically change the output to the source type. Feature request by Daniel Salazar.
Campbell Barton [Fri, 29 Jul 2011 01:24:03 +0000 (01:24 +0000)]
pep8 cleanup, also print message when attempting to run in animation player mode.
Thomas Dinges [Thu, 28 Jul 2011 18:19:15 +0000 (18:19 +0000)]
* Code cleanup
A row with alignment for 1 property = useless: ;-)
Brecht Van Lommel [Thu, 28 Jul 2011 15:51:59 +0000 (15:51 +0000)]
Fix #27719: custom RNA properties fail to update drivers. Hopefully this is
not too slow, but now we do a dependency graph tag also for these in addition
to regular ID properties, not sure how to get around it.
Brecht Van Lommel [Thu, 28 Jul 2011 14:28:27 +0000 (14:28 +0000)]
Fix part of #27944: color managment discrepancy in GLSL materials with nodes.
Campbell Barton [Thu, 28 Jul 2011 12:17:24 +0000 (12:17 +0000)]
fix [#28096] Custom gradient for weightpainting in mask mode not working properly.
Sergey Sharybin [Thu, 28 Jul 2011 11:16:10 +0000 (11:16 +0000)]
New option for multires modifier: Subdivide UVs
Enabled by default and also enabled for older filesm so
there should be no regressions.
In some cases it's useful to not use subdivided uvs for multires.
Campbell Barton [Thu, 28 Jul 2011 07:55:09 +0000 (07:55 +0000)]
fix [#28095] Select Pattern don't select all the bone in edit mode
& some style changes.
Campbell Barton [Thu, 28 Jul 2011 07:10:39 +0000 (07:10 +0000)]
fix error in writing dupligroups for X3D export, may have effected other exporters too.
Campbell Barton [Thu, 28 Jul 2011 05:09:31 +0000 (05:09 +0000)]
report an error when user blender versions other then 2.4x for animation playback.
Campbell Barton [Thu, 28 Jul 2011 03:44:17 +0000 (03:44 +0000)]
sequencer add strips now check for overlap by default (option can be disabled for python when this can become problematic for automation).
Campbell Barton [Thu, 28 Jul 2011 03:08:35 +0000 (03:08 +0000)]
automatically update the redirect from blender.org/documentation/250PythonDoc/ when uploading docs
Campbell Barton [Thu, 28 Jul 2011 02:15:58 +0000 (02:15 +0000)]
only initialize snap from the scene settings for view3d and image spaces since snap in the 3D view was enabling snap in the graph editor and sequencer without a button to disable it in those spaces.
Nathan Letwory [Thu, 28 Jul 2011 00:08:03 +0000 (00:08 +0000)]
Don't write library_materials tag when there are no materials.
Dalai Felinto [Wed, 27 Jul 2011 20:36:11 +0000 (20:36 +0000)]
refix for #27912: crash after mesh.materials.pop() (fixed wrongly on rev. 38299 - patch by Benoit Boilsee
bug spotted while reviewing a patch.
things are working now
Campbell Barton [Wed, 27 Jul 2011 17:49:35 +0000 (17:49 +0000)]
fix [#28098] Continuous Grab does not work for movement of the "Backdrop" in the Node Editor
Campbell Barton [Wed, 27 Jul 2011 13:03:56 +0000 (13:03 +0000)]
minor warning fixes for clang-static-checker
Campbell Barton [Wed, 27 Jul 2011 07:22:31 +0000 (07:22 +0000)]
fix [#28066] Unchecking 'self project' messes up 'Snap to Vertex'
this option is useful for all non-grid snapping modes (when in editmode) so make available in those cases too.
Campbell Barton [Wed, 27 Jul 2011 06:55:20 +0000 (06:55 +0000)]
more minor warning cleanups and improve error reporting if text fails to save.
Thomas Dinges [Tue, 26 Jul 2011 20:22:54 +0000 (20:22 +0000)]
* Fixed a typo in the code (uiLayoutItemSplt -> uiLayoutItemSplit)
Thomas Dinges [Tue, 26 Jul 2011 20:05:17 +0000 (20:05 +0000)]
Fix part of [#28088] bad button spacing with layout engine for menu items.
* Fixed a cut off text.
* small cleanup
Campbell Barton [Tue, 26 Jul 2011 19:47:56 +0000 (19:47 +0000)]
- bugfix for icon listview where the icons would only wrap once
- also quiet some clang warnings
Brecht Van Lommel [Tue, 26 Jul 2011 16:01:09 +0000 (16:01 +0000)]
RNA: function calls with optional parameters were not giving correct default
values for arrays.
Campbell Barton [Tue, 26 Jul 2011 13:33:04 +0000 (13:33 +0000)]
correct misc warnings
Campbell Barton [Tue, 26 Jul 2011 13:05:22 +0000 (13:05 +0000)]
fix for NULL pointer crash with operator repeat, looks like error print got mixed up.
Campbell Barton [Tue, 26 Jul 2011 09:19:51 +0000 (09:19 +0000)]
include menu ID's in tooltips when python tips are enabled, there was no way to find the ID of a menu which become annoying if you wanted to reference it from a script.
Sergey Sharybin [Tue, 26 Jul 2011 08:13:27 +0000 (08:13 +0000)]
Fix #28087: Opening files in the text editor ignores the last newline '\n'
It was tricky conversion of file buffer to text lines. Should work fine now.
Campbell Barton [Tue, 26 Jul 2011 07:41:14 +0000 (07:41 +0000)]
set the development cycle to 'beta'.
Campbell Barton [Tue, 26 Jul 2011 07:39:00 +0000 (07:39 +0000)]
py api:
- added menu templates
- move template menu into the header of the text editor (so users will find more easily)
- updated mathutils examples, switching the order of multiplication.
Brecht Van Lommel [Mon, 25 Jul 2011 16:37:10 +0000 (16:37 +0000)]
Fix #28035: point density texture doesn't bake.
Brecht Van Lommel [Mon, 25 Jul 2011 16:16:32 +0000 (16:16 +0000)]
Fix #28079: UV propertional editing was incorrectly influenced by the
mesh X mirror option.
Brecht Van Lommel [Mon, 25 Jul 2011 15:44:41 +0000 (15:44 +0000)]
Fix #28014: joystick sensor not working. Broke this with an earlier commit
trying to fix blenderplayer startup warnings. It seems we do need to init
the SDL video subsystem even if we only want events, thanks Juha Maki-Kanto
for pointing this out.
Dalai Felinto [Mon, 25 Jul 2011 15:37:55 +0000 (15:37 +0000)]
BGE BugFix for: [#23874] Custom projection matrix doesn't work in custom viewport
This was never highly tested, that's why I never committed (my patch for this was from September 2010).
But once again I got a report that this bug was a deal-break and the patch seems to work for this artist.
I believe it's working, but I will keep my eyes open for this.
Campbell Barton [Mon, 25 Jul 2011 09:31:39 +0000 (09:31 +0000)]
more vector order switching.
Campbell Barton [Mon, 25 Jul 2011 07:14:54 +0000 (07:14 +0000)]
minor edits to animation playback operator
- remove own copyright from script
- print command before executing (helps troubleshooting)
Campbell Barton [Mon, 25 Jul 2011 06:40:16 +0000 (06:40 +0000)]
style changes for operator scripts & some pep8 edits.
Campbell Barton [Mon, 25 Jul 2011 06:38:21 +0000 (06:38 +0000)]
fix for DingTo's recent commit with the animation player, it ignored the case where the player is not an absolute path but found in the users $PATH (as is common on *nix systems).
now try and execute player, reporting the exception rather then checking the player file exists.
also made some pep8-80 style edits.
Campbell Barton [Mon, 25 Jul 2011 06:09:39 +0000 (06:09 +0000)]
swap vertor multiplication order for add torus.
Campbell Barton [Mon, 25 Jul 2011 05:54:32 +0000 (05:54 +0000)]
edits to quick effects scripts
- use uv layer data api rather then operator.
- switch vector rotation order.
- made some style changes, use 80 width.
Campbell Barton [Mon, 25 Jul 2011 05:10:44 +0000 (05:10 +0000)]
External image operators.
- use bpy.data.is_saved (was using a workaround from when before this attribute was added)
- fixed a bug where editing relative paths could fail.
Campbell Barton [Mon, 25 Jul 2011 04:00:11 +0000 (04:00 +0000)]
fix [#28075] After the correction of No.38528 is applied, the following phenomenon has been generated.
own fault in recent addition of bpy.path.basename() not supporting byte paths.
Campbell Barton [Mon, 25 Jul 2011 03:59:01 +0000 (03:59 +0000)]
reverse vector multiplication order for some internal functions.
Campbell Barton [Mon, 25 Jul 2011 01:44:19 +0000 (01:44 +0000)]
deprecate multiplication orders:
vector * matrix
vector *= matrix
vector * quaternion
vector *= quaternion
Use the reverse order instead, enable WITH_ASSERT_ABORT in cmake to promote the warnings into errors.
Janne Karhu [Sun, 24 Jul 2011 17:44:22 +0000 (17:44 +0000)]
Effector calculations are now thread safe.
* where_is_object_time was called for every effector evaluation only to determine the object velocity in some rare cases.
* Calculating the effector velocity is now done in the effector precalculation stage.
* Removing this makes the code thread safe and also should give some nice performance boosts when simulating a lot of points.
* Thanks to MiikaH for noticing this problem.
Thomas Dinges [Sun, 24 Jul 2011 11:24:30 +0000 (11:24 +0000)]
2.5 World Buttons:
* Exposure and Color Range buttons were missing, added them back.
Thomas Dinges [Sun, 24 Jul 2011 11:11:23 +0000 (11:11 +0000)]
* Minor code cleanup / comment changing. No functional changes.
Sergey Sharybin [Sun, 24 Jul 2011 10:26:22 +0000 (10:26 +0000)]
New dilation function from Morten Mikkelsen (aka sparky).
This commit fixes very noticeable seams caused by margins
calculated incorrectly. This commit changes way margin is
calculated in and makes textures really seamless.
Also margin limited to 32 isn't good now -- artists are baking
really large textures nowadays so margin is now limited to 64px.
Thank you, Morten!
Daniel Salazar [Sun, 24 Jul 2011 00:59:03 +0000 (00:59 +0000)]
Add Push/Pull to toolbar
Thomas Dinges [Sat, 23 Jul 2011 22:08:37 +0000 (22:08 +0000)]
2.5:
* Removed some old not used code.
Thomas Dinges [Sat, 23 Jul 2011 21:45:22 +0000 (21:45 +0000)]
2.5 External animation player:
* Fixed an error when "Custom" was used and the path was empty (variable reference before assignment)
* The Operator now raises an error if there is no path or the path given is not available.
Dalai Felinto [Sat, 23 Jul 2011 18:03:01 +0000 (18:03 +0000)]
bugfix: [#28026] Copy Game Property broken
not exactly a bug, but the option to copy individual properties was not working from the SPACE menu.
I believe this was happening because we are using dynamic enums.
This commit makes the "merge" option to be the default one. So if you call it from the SPACE menu it will be the one used.
Joerg Mueller [Sat, 23 Jul 2011 16:08:37 +0000 (16:08 +0000)]
Cherry pick merge: /branches/soc-2011-pepper/intern/audaspace/OpenAL:r38630
Original log: Corrected the OpenAL device's threading code. This is a bugfix for #27913, thanks to Juha Mäki-Kanto for helping to resolve this.
Thomas Dinges [Sat, 23 Jul 2011 15:36:51 +0000 (15:36 +0000)]
2.5 UI:
* Added back icon to open the Splash Screen in the info header, next to version string info.
* Removed an unnecessary toggle argument for particle mode select buttons. The Toggle argument is only intended for booleans, not enums.
Ton Roosendaal [Fri, 22 Jul 2011 16:39:06 +0000 (16:39 +0000)]
Two fixes in drop-node-on-noodle:
- Intersection code was using undefined vector
caused wrong lines to be picked
- Code now also copes with hidden sockets.
If all fails, is just unhides a good socket.
Ton Roosendaal [Fri, 22 Jul 2011 16:02:56 +0000 (16:02 +0000)]
Small fix in drop-node-on-noodle: intersect code only did 3 edges of
node.
Daniel Salazar [Fri, 22 Jul 2011 15:54:54 +0000 (15:54 +0000)]
Let's try default High Quality for object align, it's slow but it's simply the correct way, users can disable while tweaking the align modes and then enable again for final result IF they are working on *dense* meshes
Ton Roosendaal [Fri, 22 Jul 2011 15:28:50 +0000 (15:28 +0000)]
Need some fun once a while:
On dragging a non-connected node on a noodle, it will insert it.
Functionality tweaks are possible, but it already feels non-intrusive.
Rules:
- Insertion only when a single noodle is intersecting with node.
- Default connects first matching socket type.
- If no socket match, it connects the first.
Campbell Barton [Fri, 22 Jul 2011 11:21:01 +0000 (11:21 +0000)]
remove duplicate function for printing the current file:line of a python script in the BGE.
Campbell Barton [Fri, 22 Jul 2011 05:33:06 +0000 (05:33 +0000)]
fix [#27910] baking ambient occlusion, do not consider closer object for blender 2.58a
Campbell Barton [Fri, 22 Jul 2011 01:21:20 +0000 (01:21 +0000)]
patch [#28045] Straighten tool from Simple Todos
from Kyle Mills (khonkhortisan)
Campbell Barton [Fri, 22 Jul 2011 00:34:03 +0000 (00:34 +0000)]
missed this file when adding option to disable frameserver
Campbell Barton [Fri, 22 Jul 2011 00:31:24 +0000 (00:31 +0000)]
fix [#28053] New material tooltip
Campbell Barton [Thu, 21 Jul 2011 23:36:17 +0000 (23:36 +0000)]
fix [#28052] PET: Shift-O cycling skips "random falloff"
Campbell Barton [Thu, 21 Jul 2011 23:06:51 +0000 (23:06 +0000)]
cmake - option to disable the frame server
Daniel Salazar [Thu, 21 Jul 2011 21:34:08 +0000 (21:34 +0000)]
Adding Shear transform to UV menu and Ctrl Alt Shift S hotkey (same as in 3D View)
Jason Hays [Thu, 21 Jul 2011 18:46:59 +0000 (18:46 +0000)]
Removed my earlier vertex paint vertex select--someone is changing it drastically in Salad (dynamic paint, I think), so I shouldn't have messed with it.
Ton Roosendaal [Thu, 21 Jul 2011 17:40:20 +0000 (17:40 +0000)]
Bugfix #28034
Blender render optimizes alpha=0 materials away, unless it has
a number of properties... but there wasn't a check for material
being ray-mirror, it then should be rendered always.
Jason Hays [Thu, 21 Jul 2011 16:51:36 +0000 (16:51 +0000)]
Merged from trunk 38474-38568
Jason Hays [Thu, 21 Jul 2011 16:25:07 +0000 (16:25 +0000)]
Fixed a Multi-Paint + Auto Normalize issue.
Beforehand, auto normalize could cause the weight to change as you brushed over vertices even if the change was less extreme than the last change.
Sergey Sharybin [Thu, 21 Jul 2011 09:50:39 +0000 (09:50 +0000)]
Corrected View Selected operator for image editor so now it works
fine for images with different X and Y aspect ratio.
Sergey Sharybin [Thu, 21 Jul 2011 08:10:34 +0000 (08:10 +0000)]
Fixed bug with multires baking to float buffers.
Was missed a flag to set rect marked as changed.
Campbell Barton [Thu, 21 Jul 2011 02:00:29 +0000 (02:00 +0000)]
revert recent matrix multiplication patch:
[#28032] Python Mathutils: Matrix Multiplication Error
Since they ended up reversing the order we better keep old code unless its proven to be incorrect.
also change Matrix.__repr__ function args to evaluate correctly (need to be inside a tuple).
Campbell Barton [Thu, 21 Jul 2011 01:37:15 +0000 (01:37 +0000)]
add tip that duplicator system doesnt support xray / transp object draw options since we keep getting reports about this.
Campbell Barton [Thu, 21 Jul 2011 01:30:26 +0000 (01:30 +0000)]
fix [#28037] Missing orange selection lines (trivial)
From what I can tell there is no good fix for this bug, calculating the 2d/3d viewborder and then attempting to align them to be pixel perfect fails because of float imprecision.
Added a workaround, so the camera border is always drawn in 2d space,
since this workaround may cause problems later on its kept under the define VIEW3D_CAMERA_BORDER_HACK so we can get old behavior back easily.
Campbell Barton [Thu, 21 Jul 2011 00:41:00 +0000 (00:41 +0000)]
fix/workaround [#28040] float images reduced to 256 levels per channel upon save
Generated images would not be re-generated with a float buffer on load, even when selected on creation.
Now save the float buffer setting as a generated image flag.
This means you can enable before baking to enable baking to a float buffer.
Jason Hays [Wed, 20 Jul 2011 15:56:35 +0000 (15:56 +0000)]
Added vertex masking support for the weight paint vgroup functions including:
Normalize, Normalize All, Invert, Clean, and Levels.
Face mask and vertex select/mask are now mutually exclusive options.
Went ahead and allowed vertex selection support and masking for vertex paint.
Campbell Barton [Wed, 20 Jul 2011 15:33:27 +0000 (15:33 +0000)]
fix [#27922] using preset_paths() with an absolute path returns twice the same thing
raise an error when an invalid subdir is passed to preset_paths()
Campbell Barton [Wed, 20 Jul 2011 08:10:01 +0000 (08:10 +0000)]
added bpy.path.basename because "//" prefix breaks os.path.basename.
Campbell Barton [Wed, 20 Jul 2011 06:41:51 +0000 (06:41 +0000)]
patch [#28032] swapped matrix multiplication order, reverse it back, tested with FBX, BVH import/export which are very sensitive to changes in matrix rotation.
Campbell Barton [Wed, 20 Jul 2011 06:22:16 +0000 (06:22 +0000)]
patch [#28030] SCONS Build: Build Date reflects "1" instead of actual date of build
by Scott Giese (sgiese)
This bug effected windows and linux.
Campbell Barton [Wed, 20 Jul 2011 06:05:47 +0000 (06:05 +0000)]
patch [#28031] Minor typo in Blenlib
from Scott Giese (sgiese)
Campbell Barton [Wed, 20 Jul 2011 05:57:38 +0000 (05:57 +0000)]
patch [#28032] Python Mathutils: Matrix Multiplication Error
from Scott Giese (sgiese)
Daniel Salazar [Tue, 19 Jul 2011 15:30:19 +0000 (15:30 +0000)]
Speedup, do only one global matrix grab per obj
Campbell Barton [Tue, 19 Jul 2011 15:21:21 +0000 (15:21 +0000)]
update to patch from Andrew Hale - obj.closest_point_ob_mesh() now takes an optional max_dist argument.
Daniel Salazar [Tue, 19 Jul 2011 15:07:29 +0000 (15:07 +0000)]
Object Align operator: coudn't resist and added a high quality (slower) option to get perfect alighment on complex shapes with rotation/scaling :D
sexy example:
http://www.pasteall.org/pic/show.php?id=15171
Daniel Salazar [Tue, 19 Jul 2011 13:27:05 +0000 (13:27 +0000)]
Object Align operator now correctly computes a *global* bounding box for all objects. This makes rotated or scaled objects work like they should. Now it's still derived from object's bounding box so it will not be completly acurate on complex objects.. to solve this Id need to cycle over all verts. Don't think that's a good idea to do in py
Jeroen Bakker [Tue, 19 Jul 2011 08:31:53 +0000 (08:31 +0000)]
fix for [#28012] Mat ID messy with shader nodes
Issue was that the Shader tree execution changed the ShaderInput.
Changes are that the UI is updated that only the main material will have the pass_index this is displayed in the "render pipeline options" panel.
When the material is not a node material the pass_index will be shown at the "options" panel
To test enable nodes on the material
Add a new input material
change the pass_index of the material (render pipeline options)
Enable RenderPass material ID and use the compositor to read out the material pass
Jeroen
Campbell Barton [Tue, 19 Jul 2011 05:05:54 +0000 (05:05 +0000)]
fix for bpy.path.abspath(), if a path was passed it would get the last directory cut off, broke copying images on export.
Dalai Felinto [Tue, 19 Jul 2011 02:47:43 +0000 (02:47 +0000)]
cleanup of scene->gamedata DNA
xsch and ysch were originally planed to replace the scene->r.xsch/r.ysch
however in blender/3dview we still need to use the r. values. Therefore we can't really run
from using those values even in bplayer. So removed the values in gamedata.
The way it's now, render values (xsch and ysch) are responsible for aspect ratio and gamedata xplay and yplay are responsible for the size of the window.
Dalai Felinto [Tue, 19 Jul 2011 01:41:45 +0000 (01:41 +0000)]
bugfix: [#27348] blenderplayer showing a different viewport size in 2.57b
I believe this bug was there since we (me) moved the game settings to scene->gm
Since I was here I added support for x/y non square aspect pixels (i.e. anamorphic)
we were already using it for videotexture so I don't know why we were not here.
Tested in OSX, but it should be working in all OSs.
Campbell Barton [Tue, 19 Jul 2011 01:36:59 +0000 (01:36 +0000)]
fix [#28018] Sequence Swap Data Operator does not work
Campbell Barton [Tue, 19 Jul 2011 00:06:43 +0000 (00:06 +0000)]
avoid setting the color for every loop
Dalai Felinto [Mon, 18 Jul 2011 22:28:42 +0000 (22:28 +0000)]
patch: [#27783] "Problem with clock" at 18:39:00 by Daniel Dionne (mrzeon)
the overflow of the clock was causing crash in the game engine in Linux.
(on June 11 2011, 18:39:00 GMT)
running to the "where is waldo (wally)" bug award of 2011.
Lukas Toenne [Mon, 18 Jul 2011 18:14:22 +0000 (18:14 +0000)]
Missing struct keyword in function declaration causes compiler error with cmake/gcc.
Jason Hays [Mon, 18 Jul 2011 17:38:17 +0000 (17:38 +0000)]
Started adding vertex masking--supports regular painting, and setting weight (Shift+K)
Removed my unreferenced vars
Jason Hays [Mon, 18 Jul 2011 16:47:21 +0000 (16:47 +0000)]
Fixed an indexing problem with the regular mouse vertex select in weight paint.
It will draw vertices in wire mode.
Campbell Barton [Mon, 18 Jul 2011 15:12:35 +0000 (15:12 +0000)]
update to match changes in trunk
Campbell Barton [Mon, 18 Jul 2011 15:05:50 +0000 (15:05 +0000)]
manually make small changes to sync with trunk