Commit Graph

16327 Commits

Author SHA1 Message Date
Martin Poirier
f42bc12285 === BPY ===
Adding Python counterparts to the Invert params for Copy Rot and Copy Loc.

I had to align the constants being used, so if you had files using those options (introduced after 2.43), you'll have to modify the INVERT settings for ROTLIKE constraints (didn't feel like making a minor version bump for this, if people thing otherwise, please say so).

Based on a patch by Juho Vepsäläinen (bebraw)
2007-04-06 19:42:46 +00:00
Joshua Leung
3f07ca5954 == Auto-Keyframing - Needed ==
Now, the 'Only Needed' Auto-Keyframing tool only adds keyframes for the relevant transforms when working with bones in PoseMode. Previously, all transform channels were keyed in such cases, as Auto-IK used to make things difficult.
2007-04-06 10:24:14 +00:00
Campbell Barton
6a684948fa All data in blender's libBlock linked lists are supposed to be sorted but in some cases wernt.
The problem was that new ID's that didnt have any naming collisions whould not run sort_alpha_id, which lead to most images not being sorted.

Simple fix is to make sort_alpha_id run on all new ID's. but we need to make sure all data is kept sorted. maybe a check when running in debug mode would help.
2007-04-06 10:08:48 +00:00
Joshua Leung
29c0708145 == Preview Range ==
Preview Range now works in the IPO editor.
2007-04-06 06:52:00 +00:00
Matt Ebb
21d1b9e310 * Tablet sensitivity for number field dragging now revealed from behind rt. 2007-04-06 05:31:46 +00:00
Campbell Barton
dea9ba1e66 PyAPI adding .reset() for hook modifiers (request from malefico) 2007-04-05 16:04:40 +00:00
Matt Ebb
a5e82ca3e9 * Tablet pressure sensitivity in number field dragging (again!)
This time, it's temporarily hidden by default, but active with rt: set to 5.
If anyone that was having probs with it before could test and let me know if
things go without issues, that would be appreciated!
2007-04-05 13:54:23 +00:00
Campbell Barton
6adecec7c1 respect location protect flags, makes reviewing models on terrain much nicer because you can lock the Z and look down on them while moving around. 2007-04-05 13:35:05 +00:00
Matt Ebb
bbceedced0 * Tablet support fixup
This commit should hopefully fix some of the problems some people were
having with tablet support in sculpt mode, and also the problems I made
visible with my previous commit related to number field dragging.

Now, all the ghost related stuff is tucked away in ghostwinlay.c and a
simple Blender API, similar to the existing get_mbut() for example, is
provided to access the tablet data. As with the other mouse related data in
Blender, the tablet data is cached upon each mouse move or click, in the
Window struct.

You can now just use:

float get_pressure(void);
void get_tilt(float *xtilt, float *ytilt);
short get_activedevice(void);

to get such data from the tablet. Documentation on the returned data
is in ghostwinlay.c in the _Window struct definition.


Brecht and Nicholas, I've updated the painting and sculpt code and it works
just fine here, you may want to give it a check though to make sure I
haven't done anything silly.
2007-04-05 12:42:07 +00:00
Campbell Barton
54f57cca08 renaming obdata was toggling editmode and activating it. 2007-04-05 11:20:03 +00:00
Nathan Letwory
da64ddeacc * pointer convention commit: bNode* node -> bNode *node. 2007-04-05 10:49:25 +00:00
Ton Roosendaal
480236e185 Change in the nodes api causes linking order to change too.
(Note; Makefiles in Blender treat .a creating very strange...)
2007-04-05 09:50:12 +00:00
Campbell Barton
985fb03478 * Changed mesh so all new data is selected (fits in with blender's UI and other areas of Python API), this could break existing scripts that count on new data being unselected (unlikely)
* Added a keyword argument to mesh.transform() - "selected_only" so you can transform the selected verts. this wont break existing scripts.
* Documented these changes in epydocs.
* used these functions in BPyAddMesh
2007-04-05 07:45:11 +00:00
Nathan Letwory
581970a640 === SCons ===
* enable TWEAK_MODE with BF_TWEAK_MODE=1 on cmd-line. Can also be specified in user-config.py
2007-04-05 05:14:50 +00:00
Ken Hughes
5e77460a28 Python API
----------
Fix memleak caused by missing Py_DECREFs (good catch, Campbell).
2007-04-05 04:34:41 +00:00
Ton Roosendaal
109d38a6d6 Bugfix #6487
Editmode armature: button "child of" did not show the actual parent if the
parent was in invisible bone-layer.
2007-04-04 16:10:53 +00:00
Nathan Letwory
7afd05d2ea * spelling commit by ideasman did accidental rename of one var, but not properly :) 2007-04-04 14:25:10 +00:00
Nathan Letwory
fb0f61c0b0 === Node editor ===
* refactor copying and freeing of node->storage by handlerizing them.
  - freestoragefunc
  - copystoragefunc
  - node_util.c/h have generic handlers for these.
2007-04-04 13:58:12 +00:00
Campbell Barton
afdd54fa37 moved source and text to american spelling
* colour -> color
* centre -> center
* normalise -> normalize
* modelling -> modeling
2007-04-04 13:18:41 +00:00
Nathan Letwory
203e6ed82b * sneaky commit III
* refactor of shi access
* extension of shi access (see http://wiki.blender.org/index.php/BlenderDev/PyNodes#ShadeInput).
 Note: tex_coords and global_tex_coords have been renamed: texture, texture_global

* patch still needed. Uploading after commit
2007-04-04 11:27:43 +00:00
Ton Roosendaal
ead26625c1 Bugfix #6486
Posemode: you can get a situation of an active object, in posemode, which
is not selected. That is very invisible, and gives issues for tools like
'clear rotation', because it checks for selected objects.

Als fixed clear (alt+g,r,s) options to only work on posemode for the active
object.
2007-04-04 10:37:28 +00:00
Peter Schlaile
7f526483fb == Sequencer ==
Added patch #5231 Insert multiple movies / audio tracks in video sequence
editor by Diego Borghetti.

Opening several movie / audio (HD) tracks in the file selector results in
adding them in a row to the timeline.
2007-04-04 06:27:36 +00:00
Nils Thuerey
d0bd8de972 Fixed bug #6068 (fluids & separate vertices)
* Also reset the fluidsimFlag to zero.
  The fluidsim settings are now disabled before duplicating the mesh
  for separate_mesh and separate_mesh_loose.
2007-04-03 19:56:57 +00:00
Nathan Letwory
9d079a2c2e * still silent code (enabled through seperate patch)
* changes in alloc/dealloc of pynode internal objects
* changes to shd_dynamic.
2007-04-03 11:24:11 +00:00
Campbell Barton
5371d956df curve center didnt update curve data.
add_mesh_torus - print's wernt removed
others, changed user visible text to american spelling - center
2007-04-03 08:20:17 +00:00
Ken Hughes
dab9f85485 Python API
----------
Added missing definition for NMEdgeType in Types modules.
2007-04-02 21:04:53 +00:00
Campbell Barton
bf2907288c editmesh_add - cone, cylinder and circle remember their 'Cap Ends' setting, each type remembers its own cap ends setting per session. adding a Cylinder with cap ends disabled names a new object cube.
console - Ctrl+Tab was autocomplete but that conflicted with weightpaint. Use Ctrl+Enter and Shift+Enter for newline without executing.
 also made console.py import bpy.
2007-04-02 16:32:05 +00:00
Campbell Barton
dabf9378d7 added a python slot to the "Add->Mesh" menu. 2007-04-02 09:58:01 +00:00
Ken Hughes
d5605414ee Python API
----------
Convert charRGBA to tp_getseters, update PyTypeObject structure to initialize
all the proper values, and use PyType_Ready to initialize (this means we can
remove the local tp_dealloc function again).
2007-04-02 05:10:32 +00:00
Campbell Barton
c0fef58e48 PyAPI
reverting python dealloc function removal, caused Save Theme to crash.
2007-04-02 02:45:57 +00:00
Nicholas Bishop
dca213525a == Multires ==
Fixed bug #6358, UV face select + Multires level change crashes

* Reading in multires files wasn't relinking the MTFace customdata stored for level 1. This was leaving tpage as a bad pointer.
2007-04-02 00:52:38 +00:00
Nicholas Bishop
2d1ef13962 == Multires ==
Fixed bug in the set-level callback; was incorrectly treating it as though a render was in progress.
2007-04-01 23:59:42 +00:00
Andrea Weikert
3c256eb9e4 ==== bugfix ====
small fix for uninitialized variable curlib
2007-04-01 19:00:10 +00:00
Ken Hughes
873b83c131 Python API
----------
Replace extern declarations for IDProp types with header include.
2007-04-01 03:58:42 +00:00
Ton Roosendaal
6057fc7186 Bugfix:
Freeing memory for node typedefinitions should be not in usiblender.c (that
is for UI-only stuff) but in kernel.
2007-03-31 18:18:30 +00:00
Ken Hughes
bf8bb77abc Python API
----------
Change deprecation printfs to print warning once instead of everytime the
deprecated method is called.  Also commented out deprecation warnings for
code which will eventually be replaced by experimental Blender.Main/bpy
module.
2007-03-31 15:31:37 +00:00
Ton Roosendaal
685bfd056e Yesterday's fix for Composite preview had bug for render output drawing in
Image window... variable 'draw cropped' was hanging.
2007-03-31 10:37:15 +00:00
Campbell Barton
3aec899828 Mesh.py - Updated doc and example about faceUV/vertexColor
image_billboard.py - was broken because textures dont accept the antialias flag anymore
2007-03-31 04:20:00 +00:00
Johnny Matthews
6f05a8ec2a Bug #5607
fkey - automatic quad from 4 verts does so on a tetrahedron

Added a case where there are 4 verts selected but > 4 edges selected. Uses addfaces_from_edgenet in that case now. This fixes the example blend that was given.
2007-03-30 18:24:00 +00:00
Campbell Barton
8da5f2a143 allow dealing with vertex groups once an object is created from a mesh. 2007-03-30 16:47:42 +00:00
Ton Roosendaal
eb3378a38d Bugfix #6469
Crashes in composite; caused by bad bad bug in freeing "passed on" buffers,
only happens with option "Free unused" set though.

Appeared to be mixup of variable names. Code changes with 2 bytes... :)
2007-03-30 13:56:24 +00:00
Campbell Barton
0a150240ac vec *= matrix would crash blender when multiplying a 3d vec by a 4x4 matrix because it wrote the 4th value in a 3d vector. 2007-03-30 12:39:21 +00:00
Joshua Leung
4512e34688 == Action Editor - Long Keyframes Bugfix (#6455) ==
Long keyframes didn't always display correctly when keyframes were being transformed. The old code assumed that the keyframes were all sorted chronologically. However, for technical reasons, this is not the case during transforms, causing problems.

Some slowdowns may be experienced on actions with large numbers of keyframes. I've only noticed a minor slowdown on some test-animations from Plumiferos I've got, but those files had a LOT of keyframes.
2007-03-30 12:22:06 +00:00
Campbell Barton
1a47d71f72 added Window.Get/SetActiveLayer() and changed how scn.objects.new() works, if scn is the active scene it uses the 3d views active layer to create the object in. 2007-03-30 08:20:37 +00:00
Stephen Swaney
f400069d34 run dos2unix on BKE_idprop.h
remove unused var from Library.c
2007-03-30 04:53:49 +00:00
Nathan Letwory
3b4a4c32dc * dos2unix (from now on patches shouldn't break on this file). 2007-03-30 04:06:06 +00:00
Stephen Swaney
b11a55d900 re-remove removed comment. 2007-03-30 03:07:49 +00:00
Willian Padovani Germano
c86e95c84a BPython: pydrivers
-Adding name "self" to the pydriver's dictionary, so that objects can be easily referenced in their own expressions. For example, the expression:

self.LocY

for the LocX channel of an object would force this object's location in X to be equal to its location in Y. As always, feedback welcomed.
2007-03-30 00:57:07 +00:00
Campbell Barton
cfdef7a88a ICVS: ----------------------------------------------------------------------
import OBJ dosnt raise a Py Error when no image is given for a material
export FBX works much better, tested 179 models and dosnt crash on any now. tested import export with large scene, 375,000 tri's.
Mesh.py doc note about UV coords,,
editmesh_add minor typo
2007-03-29 14:35:01 +00:00
Ton Roosendaal
3c5462e660 Bugfix #6426
Clearing number buttons and press enter (for assigning zero) did not give
a button event anymore. Caused by code for python eval, it treated this
as an error.
2007-03-29 12:57:15 +00:00