Commit Graph

9622 Commits

Author SHA1 Message Date
Ton Roosendaal
677a4b4da7 Small feature for Referenced Library debugging:
In Outliner, shift+click on item with [Li] icon, gives name of Library file
2007-03-21 20:40:18 +00:00
Andrea Weikert
059ea9359d ==== MSVC 7.1 projectfiles ====
- added BLI_boxpack2d files
2007-03-21 20:36:14 +00:00
Campbell Barton
903a8ed1fd missing x/y setting for the first box 2007-03-21 17:11:25 +00:00
Campbell Barton
ca94d97049 moved the boxpacker from PyAPI's Geometry to BLI_boxpack2d
made LSCM UV Unwrapper use boxpack2d
2007-03-21 17:06:02 +00:00
Stephen Swaney
145f474c5f fix compiler warning: implicit declaration of oldLibrary_Init() 2007-03-21 14:25:31 +00:00
Campbell Barton
ab005dadd5 replaced face sort by Z with randomize (Ctrl+F menu) 2007-03-21 13:47:20 +00:00
Nicholas Bishop
fa2627aa2c == Multires ==
Added an option to choose between Catmull-Clark and simple subdivision when adding a level. This setting applies only to how the level is created; any changes to lower levels are still propagated to the top level using Catmull-Clark.
2007-03-21 06:33:04 +00:00
Ken Hughes
ce46f04935 Python API
----------
Roll back to previous version; didn't mean to commit changes with Py_GetVersion
just yet!
2007-03-21 02:46:42 +00:00
Ken Hughes
3a834803ef Python API
----------
Support for new bpy.libraries module, which is being proposed to replace
the Blender.Library module.
2007-03-21 02:23:28 +00:00
Ken Hughes
a6db9c5949 Python API
----------
Definition of default "bpy" module was decrementing reference count, which
caused assertion errors on Windows.  This fixes the problem on Linux; Win
developers please test!
2007-03-20 18:45:05 +00:00
Campbell Barton
cbadf6523c added a null check for give_matarar with make_local, was crashing with some data 2007-03-20 16:54:31 +00:00
Ton Roosendaal
e706ce0228 The function to get a Material didn't correctly check for object types.
(bug reported by Campbell via irc)
2007-03-20 15:34:00 +00:00
Kent Mein
c10c71909e Stupid little fix, var == "str" bad.... !strcmp(var, "str") good...
Thanks DripStone,

Kent
2007-03-20 15:07:23 +00:00
Campbell Barton
83a9a84498 BoxPack2D example in epydocs, small cleanup on Geometry.c 2007-03-20 12:07:02 +00:00
Joshua Leung
bafc50df9b NLA:
Some more action channel protection stuff
2007-03-20 11:11:32 +00:00
Joshua Leung
3cb25c774c == Action Editor - Collapsable Action Channels ==
Action Channels can now be collapsed/expanded to show/hide Constraint Channels, lessening clutter. In future, this could (will probably be) expanded to
show the show/hide individual transform channels.

User Notes:
* Expansion is off by default
* NKEY popup now features option to turn expansion on/off
* Changed behaviour of protection a bit - now if an action channel has protection
 on, constraint channels under it are also automagically protected

Developer Notes:
* I've gone through doing a lot of whitespace/linebreak tweaking to get the code looking more consistent with itself
* To save typing (and to make it easier to make future revisions), a set of macros
 is now used to check for some commonly-checked settings (i.e. selection, visibility,
 and protection).
2007-03-20 11:04:47 +00:00
Campbell Barton
a51477093b Geometry.c - rewrote my python box-packer algo in C,
packing 2400 rectanges is about 38x faster.

Use the C implimentation in uvcalc_lightmap and uvcalc_smart_project

Blender.c - filename returning None raises errors with existing scripts, just return "" so string functions on the filename dont raise an error.
2007-03-20 07:23:09 +00:00
Alfredo de Greef
1ebc28bead Minor modification of foreground processing code in the defocus node.
Now uses a fixed value instead of a value based on the closest object.
Should eliminate sudden jumps in blur amount from frame to frame when used
in animations.
2007-03-20 06:50:39 +00:00
Stephen Swaney
03edb15afd cleanup compiler warnings for
missing virtual destructors
  out of order initializers
2007-03-20 04:19:30 +00:00
Andrea Weikert
7f2d1f651c ==== blenlib ====
- added replacement BLI_snprintf for snprintf to avoid MSVC specific #defines for snprintf.
- BLI_snprintf also ensures trailing zero, so helps preventing buffer overflows
2007-03-19 19:34:04 +00:00
Andrea Weikert
261120236b ==== MSVC 7.1 projectfiles ====
- added new file Config.c for Python API
2007-03-19 19:29:27 +00:00
Ton Roosendaal
6f3fb5525e Patch #3126
Option to draw object name in 3d window corner, now also displays for
meshes the (pinned) shape key name.

Threads: warning fix, added (void) for function declaration.
2007-03-19 15:48:24 +00:00
Ton Roosendaal
4aa556e9af Patch #6123m by Leandro Inocencio
Sound Window now has option "lock view to other 2d windows" too.
2007-03-19 11:26:53 +00:00
Joshua Leung
6fc7077932 Preview Range Bugfix:
Removed some code that was causing problems and wasn't even needed.
Now, there are no more problems when setting the preview range from the Action Editor when it was displaying an action that was scaled in the NLA.
2007-03-19 10:15:13 +00:00
Ton Roosendaal
6f42124053 Patch by Juho V,
Colorband: nodes now show an "Add" button too.
2007-03-19 09:40:41 +00:00
Joshua Leung
8b4b8d4dd2 == Preview Range ==
Preview Range is a useful tool for animating (espcially on longer timelines). It allows you to only run through a limited set of frames to quickly preview the timing of a section of movement without going through the whole timeline. It means you don't have to set/reset start/end frame for rendering everytime you wish to only preview a region of frames.

Hi Ton,

Attached is a patch (I know you've already got lots of them in the tracker ;-) ) for a feature that I've sometimes wanted. It seems that this sort of thing is supported in other packages, but I can't be sure.

Note: I may have left in a few bits and pieces I didn't mean to in the patch (this is off a source tree which had quite a few revisions in it, all of which was experimental)



== Preview Range ==
Preview range is useful for animating (espcially on longer timelines). It allows you to only run through a limited set of frames to quickly preview the timing of a section of movement without going through the whole timeline. It means you don't have to set/reset start/end frame for rendering everytime you wish to only preview a region of frames.

* 'Ctrl P' in Action/NLA/Timeline sets preview range. Click+drag to form selection-box defining region of frames to preview
* 'Alt P' in Action/NLA/Timeline to clear preview range
* 'Pre' button beside Start/End fields in timeline toggles whether start/end fields refer to scene or preview
* 'Ctrl Rightarrow' and 'Ctrl Leftarrow' jump to start/end of preview region when it is set
* 'S' and 'E' set the start/end frames of preview region when it is set (just like normally) in Timeline only
* In Action/NLA editors, frames out of preview region are now drawn darkened when preview-region is set


See the following page for more info later:
http://wiki.blender.org/index.php/User:Aligorith/Preview_Range
2007-03-19 07:32:36 +00:00
Ken Hughes
819fc06a80 Fixing a few more gcc warnings by adding pointer casts. 2007-03-19 05:40:42 +00:00
Campbell Barton
4f5065ac98 addad e new macro - BASE_SELECTABLE for checking if an object is selectable (restrict visible and restrict selected are off and its in the current view layer)
Made "Select Grouped" functions and "Select Linked" use BASE_SELECTABLE macro so they wont select objects they shouldent.
Made "Select Grouped" push an undo

Made "Select Grouped" and "Select Linked" only push add an UNDO if they make a change to the selection.

Fix for own bug. "Select Group" -> Hooks option could crash blender if an objetc hook was in another scene.
2007-03-19 05:09:56 +00:00
Campbell Barton
9477a7bc5c added mesh skin to the face key menu and added a python slot here. 2007-03-19 03:22:42 +00:00
Campbell Barton
8eb0544f08 [ #4227 ] Determine the "real" current filename via Python
applied. tested and this is how "filename" should work, so changed Blender.Get("filename") to return None instead of the last opened file.
2007-03-19 01:51:54 +00:00
Martin Poirier
5297123de1 === View Orbit Around Active ===
Changed to Orbit around Selection, using transform code to calculate the selection center (using Median center method).
2007-03-18 18:21:24 +00:00
Martin Poirier
31f79cf5b4 === Constraints ===
Patch by Juho Vepsäläinen (bebraw)
[ #5850 ] Inverted axis' buttons to Copy Rotation and Copy Location constraints

This patch adds the options to invert the value being copied from each axis of the Copy Rot/Copy Loc constraints.


This commit also includes some slight code sanitization and tool tips cleanup (for the two track constraints, the tool tips were really unuseful).
2007-03-18 14:53:17 +00:00
Ben Batt
7170f9ec2d == Edgesplit modifier speed improvements ==
Speed improvements to the Edgesplit modifier (changed the data structures
and memory management to avoid using slow GHash functions and large numbers
of small mallocs). In my tests, this makes the modifier approximately twice
as fast.
2007-03-18 14:20:24 +00:00
Ben Batt
77cd80e1b5 == Mirror modifier upgrade ==
Upgraded the Mirror modifier to support mirroring of UV coordinates in the
faces created by the modifier.
2007-03-18 13:46:26 +00:00
Ben Batt
0b55cac34c == Array modifier upgrade ==
Upgraded the Array modifier to allow the user to specify start and end
cap objects. This makes arrays more flexible and more useful for creating
subsurf cages. The cap objects are added at the start and end of the array,
and will be auto-merged with the rest of the array if the 'Merge' button is
on.

Examples at:
- http://members.optusnet.com.au/~bbatt/tentacle01-endcaps.blend
- http://members.optusnet.com.au/~bbatt/arraytest06.blend
- http://members.optusnet.com.au/~bbatt/arraytest07.blend
2007-03-18 13:26:53 +00:00
Campbell Barton
15de493426 excellent mesh unolder script by Matthew Chadwick
http://celeriac.net/unfolder/
2007-03-18 12:08:51 +00:00
Joshua Leung
5a9082a193 == Action Editor ==
* When the mouse is over an Action or Constraint Channel, you can now
rename it by pressing NKEY (like for Shapekey channels). You can also set
the 'protection' status for the Action/Constraint channel in this way.

* Removed the double confirmation when deleting Action-Channels. Also,
markers are now not deleted when deleting action channels.
2007-03-18 06:06:54 +00:00
Campbell Barton
90eb851d50 added bpy.config, more configuration options still need adding. 2007-03-18 04:46:54 +00:00
Joshua Leung
41aac13d9e == Recently-Opened Files List (Patch #5708) ==
In the past, this was limited to only having 10 items. Now you can set the
number of recently opened files that are remembered (ranging from 0 to 30
items).

Setting for this can be found under 'Auto-Save' in the Info window.
2007-03-18 03:30:24 +00:00
Nicholas Bishop
6b4f197983 == Sculpt Mode ==
Added a #define for the number of vertices the flatten brush should sample when calculating the distance to flatten to.
2007-03-17 20:11:50 +00:00
Ken Hughes
afadfa54bd source/blender/src/buttons_editing.c:
Fix C90 variable declaration in function body
source/blender/src/editaction.c:
    remove unused variable
2007-03-17 15:00:11 +00:00
Ken Hughes
83e72cc813 Fix various gcc warning, unused variables and incorrect type passed to
*printf functions.
2007-03-17 14:46:04 +00:00
Ken Hughes
8e43b3f950 More fix various gcc warning, mainly related to signed/unsigned parameters
passed in general.
2007-03-17 14:43:52 +00:00
Ken Hughes
4e72e4ad2b Fix various gcc warning related to signed/unsigned parameters passed to
OpenGL functions.
2007-03-17 14:15:02 +00:00
Joshua Leung
bd04d23465 When pressing XKEY or DELETE in NLA/Action/IPO editors, you are no
longer asked whether you want to delete the selected markers or keys.
Instead, it more 'logically' deletes anything that is selected.
2007-03-17 05:50:47 +00:00
Ken Hughes
b00f592992 Python API
----------
Bug reported on IRC:  Object.setEuler(0,0,0) threw an exception.  Change so
it will accept (0,0,0), ((0,0,0), ([0,0,0]), or an euler.
2007-03-17 03:19:41 +00:00
Campbell Barton
2ee75aec15 some dealloc's I removed didnt get automaticly added back in by python, fixed now 2007-03-16 14:44:31 +00:00
Campbell Barton
bc1fdcd858 type initialization updates, and refcount fix for lamp, reverted some changes to NMesh 2007-03-16 11:38:02 +00:00
Ton Roosendaal
c5f4a0a1b0 Patch #5460 by Juho V
Switch screen hotkey, CTRL+Left/Rightarrow now cycles.
2007-03-16 11:36:47 +00:00
Ton Roosendaal
dc9a21f25b Patch #6121 by Diego Borghetti
Create/delete vertex groups now is possible in Object mode too (using the
buttons in editbuttons).
2007-03-16 11:29:40 +00:00