Commit Graph

18280 Commits

Author SHA1 Message Date
Joerg Mueller
a2b0020e11 Reverted the addition of the f-curve sound modifier (was added in revision 24759) due to unusability and performance issues. The ability to use a sound as animation source will be added as an import operator later that renders a sound to an f-curve which brings the advantage that you can edit the generated curve later and the disadvantage it is not automatically updated when the sound changes. 2009-12-24 14:01:22 +00:00
Campbell Barton
bb452f29d6 minor pyapi changes 2009-12-24 11:40:14 +00:00
Matt Ebb
73c62183f8 Removed a few operators that were just used to generate popup menus and replaced with python defined menus. 2009-12-24 10:39:30 +00:00
Campbell Barton
accfa71b2c pedantic naming: wmKeyMapItem wasnt called 'kmi' in some cases. 2009-12-24 09:36:15 +00:00
Matt Ebb
980e97923b Key map related things:
* Moved 'change shortcut' (previously directly RMB on menu items) to a context-menu item, and added Remove Shortcut and Add Shortcut. This is all available now in a RMB context menu for operator buttons and menu entries.
* Renamed a bunch of key maps to be consistent with UI names, and human-readable. Since these key map names are now being directly used in the UI for people to find things, they should be understandable and in plain language.

This renaming may break some older saved key map setups - though previously saved .b25.blends should convert over ok. Exported .py files may need some find/replacing - in this commit check the changes in resources.c to see what's changed.
2009-12-24 09:26:06 +00:00
Campbell Barton
4aa15ee9f2 crash fix for sculpt when loading some files 2009-12-23 15:51:39 +00:00
Campbell Barton
6c1bbcd8a2 fix for a crash when running blender in debug mode (-d arg), was registering every operator in debug mode.
added some more sculpt key shortcuts
* R toggles rake
* Shift+A toggles airbrush

note: last commit added Ctrl+0 to set zero subsurf and multires
2009-12-23 15:06:47 +00:00
Campbell Barton
bb094b8655 key shortcits for sculpt back
- T was 'Flatten Brush', now Shift+T
- added an option to OBJECT_OT_subdivision_set to set the level relatively (so page up/down works), however RNA lets it set one level higher then the maximum, this seems displays OK in the 3D view so not sure whats going on here (as if there is always an extra hidden multires level).
2009-12-23 12:13:48 +00:00
Damien Plisson
489ff11f2b Fix compilation of carbon quicktime & complete use of report mechanism instead of standard printf 2009-12-23 11:49:07 +00:00
Joshua Leung
da5025d46d Bugfix #20463: In graph editor bone channels cannot be selected with 'A' or 'B' border select
This bug was caused by my recent commit to get bone select -> selection syncing working. The selection flushing was occurring too readily, blocking any selection tools from having any visible effect. Now this syncing is only triggered when appropriate notifiers+flags have been set.
2009-12-23 11:22:30 +00:00
Benoit Bolsee
21e2d9b85a BGE: fix more transpose bug when MathUtils is not used. 2009-12-23 09:55:34 +00:00
Benoit Bolsee
81a7bf2db9 BGE: fix more matrix transpose bugs in assignement to game object matrices.
Assignment to KX_GameObject localOrientation and
worldOrientation matrices was assuming row-major matrix
although reading these matrices was returning a column-major
MathUtils object.

The faulty function (PyMatTo) is fixed and all matrices
in python are now assumed column-major.

This function is also used in the following methods:

BL_Shader.setUniformMatrix4()
BL_Shader.setUniformMatrix3()

(No change in scripts if you didn't specify the optional
transpose parameter: the default value is changed so
that column-major matrices are assumed as before.)

KX_Camera.projection_matrix

(assignement to this attribute now requires a column-major
matrix and you must fix your script if you were setting
a value to this attribute.)
2009-12-22 23:38:09 +00:00
Martin Poirier
8cce609a04 Missing angle_v3v3 definition (it was declared)
Wrong definition for angle_v2v2 (it read 2d vectors as 3d vectors)
2009-12-22 19:56:12 +00:00
Benoit Bolsee
1941ef0940 BGE: update for new soft body helpers API. 2009-12-22 19:53:44 +00:00
Campbell Barton
d74bbcdd85 select nth (face/edge/vertex) - depending on which was last selected, useful for colapsing every other edge for eg. 2009-12-22 19:01:51 +00:00
Benoit Bolsee
8c72e18354 BGE: fix bug with rigid body joint constraint target name: skip OB letter. 2009-12-22 18:39:42 +00:00
Campbell Barton
b3d30c66ba select linked and select linked pick working again (wth shift for extend) 2009-12-22 17:18:33 +00:00
Campbell Barton
22a892f402 - make ToolSettings.mesh_selection_mode into an array of 3 bools rather then an enum since multiple can be set at once.
- ToolSettings had its id.data set to NULL when taken directly from the context (causing a crash in cases)
- menu for changing vert/edge/face selection now a python menu, removed operator.
- wm.context_set_value(), would really prefer not to have this since it evaluates the value as a python expression however there are no ways to define arrays in PyOperators
2009-12-22 16:11:11 +00:00
Brecht Van Lommel
68bc4d7355 Attempt to fix compilation of quicktime after reporting changes
(can't build this file myself, only qtkit seems to work here).
2009-12-22 15:20:31 +00:00
Brecht Van Lommel
d653192751 Reports: writing movies now uses the reports mechanism to throw errors.
Also fixes bug #19463: screencast to xvid ffmpeg crash.
2009-12-22 12:01:32 +00:00
Brecht Van Lommel
0606dbe291 Fix #20433: make single user doesn't work from menu. Popup menus for
operators were not passing along properties.
2009-12-22 11:59:30 +00:00
Campbell Barton
3221dea46e clone and stencil layer access added, renamed mask to stencil layer internally 2009-12-22 10:48:13 +00:00
Joshua Leung
5a3ac3ceeb Assorted F-Curve/Keyframe API stuff (for use with some Sequencer editing):
* Added function for F-Curves to find the F-Curves in a given list which affect some named data, such as bones, nodes, or sequence strips.

* Added a BezTriple offsetting callback to be used with the F-Curve+Keyframe loopers in use for many of the keyframe editing tools.
2009-12-22 10:14:13 +00:00
Campbell Barton
e207d04532 quite a few python panels (10 or so) had names longer then the PanelType allowed,
for panels it would fail silently but for menu's it meant further references would give errors.

increase the registered class name from 32 to 64 and raise an error if the limit reached.
2009-12-22 10:04:15 +00:00
Benoit Bolsee
8f5b2e946b BGE bug #20446: revert to orignal code, the problems comes from misunderstanding of matrix theory. More details in bug report. 2009-12-22 09:46:03 +00:00
Campbell Barton
5c3879f8fb zoom to mouse for 2D view
note: this works in all views except for nodes which seem to use the view bounds differently
2009-12-22 08:39:59 +00:00
Dalai Felinto
f4ce1bea0f increasing camera lens limit to 172.85 (same as 2.49xx)
It's not range_ui, but range itself. if someone think that for some reason it's better to keep the visible range up to 100 (the current one) it could be as well.
2009-12-22 08:05:19 +00:00
Dalai Felinto
9c22e846fe [#20446] mathutils: bugfix for matrix * matrix - patch by Paul Parchenko (parfoure) thanks
From the tracker:
- typo was making the multiplication to transpose resulting matrix
eg
####
from Mathutils import *
from math import radians

cont = GameLogic.getCurrentController()
owner = cont.owner

owner.worldOrientation = RotationMatrix(radians(1), 3, 'z') * owner.worldOrientation
####
2009-12-22 07:27:53 +00:00
Martin Poirier
95db4d16dd Missing file in previous commit. 2009-12-21 18:56:00 +00:00
Martin Poirier
90e9aee9b8 Sequence Slide transformation (easier to do special sequence code there than in a generic transform)
Also make the transform operator creation a bit more automagic (I always forget either operator registration or modal keymap registration, this is all automatic now).
2009-12-21 17:23:44 +00:00
Campbell Barton
1f8cd19d4b removing sequence strip overlap didnt adjust the animation key time
single images were not having their animation data transformed correctly
made sequence strip opacity 0-1 rather then 0-100 in RNA
2009-12-21 16:57:39 +00:00
Brecht Van Lommel
29ea21e6bd Multires: added back Reshape function, to copy vertex locations
from another mesh.
2009-12-21 15:55:10 +00:00
Martin Poirier
4d32e002ed [#20441] 3D manipulator widget problem
calculateTransformCenter function passing event to transform init when it shouldn't have.
2009-12-21 15:37:19 +00:00
Campbell Barton
371571fed6 - camera switching didnt work for openGL render
- UV Project (Bounds) wasnt in the menu
2009-12-21 11:42:31 +00:00
Janne Karhu
5832f2fb7b * Rest length parameter for harmonic force springs. Implementation is a slightly modified version of the patch provided by Raúl Fernández Hernández (Farsthary).
* Also added a "multiple springs" option to use every effector point as a harmonic spring instead of just one.
2009-12-21 11:19:07 +00:00
Brecht Van Lommel
0c859f836b Fix #20432: object.layers did not do correct update, could miss depsgraph rebuild. 2009-12-21 10:50:32 +00:00
Brecht Van Lommel
1d957e4fb7 Fix #20442: opening .blend file with hanging temp screens could crash,
version patch removed these screens, but not the corresponding windows.
2009-12-21 10:46:14 +00:00
Stefan Gartner
e65562c6ea Makefiles: fix CFLAGS for OS X 2009-12-21 10:40:55 +00:00
Stefan Gartner
5e6e3453a5 OS X: added support for building with Cocoa to Makefiles
to build with Cocoa support, set WITH_COCOA to true in user-def.mk
2009-12-21 10:38:04 +00:00
Campbell Barton
f7f06d96f3 Solidify rim faces now get face data from the faces they extrude from, (UV and VCol support) 2009-12-21 10:16:04 +00:00
Joshua Leung
0fcfe8993e Animation Editors - Durian Request - Selection Syncing:
This commit brings back the functionality whereby the selection of F-Curves and/or relevant Group(s) is synced with the selection status of the corresponding bones when the bones are selected/deselected.
2009-12-21 09:52:43 +00:00
Campbell Barton
824b763322 solidify modifier - rim faces now copy values from the faces they extrude from (material, face flags but not uvs or vcols yet)
this doesnt work in editmode yet.
2009-12-21 08:37:30 +00:00
Joshua Leung
5affd02156 Quicky Loopcut patch:
In addition to the existing scrollwheel up/down, PageUp/Down can now be used to set the number of cuts while previewing the cut location.
2009-12-21 02:39:39 +00:00
Martin Poirier
e2f7a33113 Missing id assignment for kmi creation function (2 out of 3 isn't good enough). 2009-12-21 01:44:33 +00:00
Campbell Barton
54c9557b85 Solidify modifier for Durian (allow cloth sim on single layer and make solid after)
Mostly the same as the recently added editmode tool with some extras.

* Options to disable filling in the rim between inner and outer surface, since its faster not to detect this in cases where its not needed.
* Option to disable high quality normal calculation, mostly noticable when operating on building walls, not needed for cloth or more organic shapes.
* Option to disable 'even thickness', again, not needed in some cases.

Also options for creasing inner/outer and rim edges, need this for makign Sintels cloths solid since zero crease looks far too soft.

note:
* UVs and VCols etc are copied to the new skin however rim faces dont get the UVs or vcols set from the faces they are created from yet.
* Normals are assumed to be pointing outwards
* used patch from Uncle Entity as a template since it added the DNA and RNA entries but the actual modifier from the patch wasnt used.
2009-12-21 01:02:08 +00:00
Dalai Felinto
2b69661805 BGE fix: 3DDview not redrawing when exiting BGE
CTX_wm_window_set() was resetting the CTX_wm_area(C), for the redrawing wasn't working.
Changing their orders fixes it.
2009-12-20 18:47:30 +00:00
Martin Poirier
9711c16fde Fix do_version for new preview region (for real this time).
First spacedata has empty region base and uses the one in ScrArea. Need to account for that.
2009-12-20 15:23:29 +00:00
Joshua Leung
7e16ac8190 Fixes for memory leaks when exiting Blender while still in WeightPaint Mode. 2009-12-20 11:04:11 +00:00
Joshua Leung
4d16275c03 Bugfix #20173: Crash with Weight Paint on polygons with no faces 2009-12-20 10:50:40 +00:00
Joshua Leung
170c464920 Animation Editor Code Cleanups:
Removing some unused functions that have become redundant in recent times.
2009-12-20 05:09:55 +00:00