blender-staging.git
13 years agofix compiler warning: implicit declaration of oldLibrary_Init()
Stephen Swaney [Wed, 21 Mar 2007 14:25:31 +0000 (14:25 +0000)]
fix compiler warning: implicit declaration of oldLibrary_Init()

13 years agoreplaced face sort by Z with randomize (Ctrl+F menu)
Campbell Barton [Wed, 21 Mar 2007 13:47:20 +0000 (13:47 +0000)]
replaced face sort by Z with randomize (Ctrl+F menu)

13 years ago== Multires ==
Nicholas Bishop [Wed, 21 Mar 2007 06:33:04 +0000 (06:33 +0000)]
== 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.

13 years agoPython API
Ken Hughes [Wed, 21 Mar 2007 02:46:42 +0000 (02:46 +0000)]
Python API
----------
Roll back to previous version; didn't mean to commit changes with Py_GetVersion
just yet!

13 years agoPython API
Ken Hughes [Wed, 21 Mar 2007 02:23:28 +0000 (02:23 +0000)]
Python API
----------
Support for new bpy.libraries module, which is being proposed to replace
the Blender.Library module.

13 years agoPython API
Ken Hughes [Tue, 20 Mar 2007 18:45:05 +0000 (18:45 +0000)]
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!

13 years agoadded a null check for give_matarar with make_local, was crashing with some data
Campbell Barton [Tue, 20 Mar 2007 16:54:31 +0000 (16:54 +0000)]
added a null check for give_matarar with make_local, was crashing with some data

13 years agoThe function to get a Material didn't correctly check for object types.
Ton Roosendaal [Tue, 20 Mar 2007 15:34:00 +0000 (15:34 +0000)]
The function to get a Material didn't correctly check for object types.
(bug reported by Campbell via irc)

13 years agoStupid little fix, var == "str" bad.... !strcmp(var, "str") good...
Kent Mein [Tue, 20 Mar 2007 15:07:23 +0000 (15:07 +0000)]
Stupid little fix, var == "str" bad....  !strcmp(var, "str") good...

Thanks DripStone,

Kent

13 years agoBoxPack2D example in epydocs, small cleanup on Geometry.c
Campbell Barton [Tue, 20 Mar 2007 12:07:02 +0000 (12:07 +0000)]
BoxPack2D example in epydocs, small cleanup on Geometry.c

13 years agoNLA:
Joshua Leung [Tue, 20 Mar 2007 11:11:32 +0000 (11:11 +0000)]
NLA:

Some more action channel protection stuff

13 years ago== Action Editor - Collapsable Action Channels ==
Joshua Leung [Tue, 20 Mar 2007 11:04:47 +0000 (11:04 +0000)]
== 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).

13 years agoGeometry.c - rewrote my python box-packer algo in C,
Campbell Barton [Tue, 20 Mar 2007 07:23:09 +0000 (07:23 +0000)]
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.

13 years agoMinor modification of foreground processing code in the defocus node.
Alfredo de Greef [Tue, 20 Mar 2007 06:50:39 +0000 (06:50 +0000)]
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.

13 years agocleanup compiler warnings for
Stephen Swaney [Tue, 20 Mar 2007 04:19:30 +0000 (04:19 +0000)]
cleanup compiler warnings for
  missing virtual destructors
  out of order initializers

13 years ago==== blenlib ====
Andrea Weikert [Mon, 19 Mar 2007 19:34:04 +0000 (19:34 +0000)]
==== 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

13 years ago==== MSVC 7.1 projectfiles ====
Andrea Weikert [Mon, 19 Mar 2007 19:29:27 +0000 (19:29 +0000)]
==== MSVC 7.1 projectfiles ====
- added new file Config.c for Python API

13 years agoPatch #3126
Ton Roosendaal [Mon, 19 Mar 2007 15:48:24 +0000 (15:48 +0000)]
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.

13 years agoPatch #6123m by Leandro Inocencio
Ton Roosendaal [Mon, 19 Mar 2007 11:26:53 +0000 (11:26 +0000)]
Patch #6123m by Leandro Inocencio

Sound Window now has option "lock view to other 2d windows" too.

13 years agoPreview Range Bugfix:
Joshua Leung [Mon, 19 Mar 2007 10:15:13 +0000 (10:15 +0000)]
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.

13 years agoPatch by Juho V,
Ton Roosendaal [Mon, 19 Mar 2007 09:40:41 +0000 (09:40 +0000)]
Patch by Juho V,

Colorband: nodes now show an "Add" button too.

13 years ago== Preview Range ==
Joshua Leung [Mon, 19 Mar 2007 07:32:36 +0000 (07:32 +0000)]
== 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

13 years agoFixing a few more gcc warnings by adding pointer casts.
Ken Hughes [Mon, 19 Mar 2007 05:40:42 +0000 (05:40 +0000)]
Fixing a few more gcc warnings by adding pointer casts.

13 years agoaddad e new macro - BASE_SELECTABLE for checking if an object is selectable (restrict...
Campbell Barton [Mon, 19 Mar 2007 05:09:56 +0000 (05:09 +0000)]
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.

13 years agoadded mesh skin to the face key menu and added a python slot here.
Campbell Barton [Mon, 19 Mar 2007 03:22:42 +0000 (03:22 +0000)]
added mesh skin to the face key menu and added a python slot here.

13 years ago[ #4227 ] Determine the "real" current filename via Python
Campbell Barton [Mon, 19 Mar 2007 01:51:54 +0000 (01:51 +0000)]
[ #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.

13 years ago=== View Orbit Around Active ===
Martin Poirier [Sun, 18 Mar 2007 18:21:24 +0000 (18:21 +0000)]
=== View Orbit Around Active ===

Changed to Orbit around Selection, using transform code to calculate the selection center (using Median center method).

13 years ago=== Constraints ===
Martin Poirier [Sun, 18 Mar 2007 14:53:17 +0000 (14:53 +0000)]
=== 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).

13 years ago== Edgesplit modifier speed improvements ==
Ben Batt [Sun, 18 Mar 2007 14:20:24 +0000 (14:20 +0000)]
== 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.

13 years ago== Mirror modifier upgrade ==
Ben Batt [Sun, 18 Mar 2007 13:46:26 +0000 (13:46 +0000)]
== Mirror modifier upgrade ==
Upgraded the Mirror modifier to support mirroring of UV coordinates in the
faces created by the modifier.

13 years ago== Array modifier upgrade ==
Ben Batt [Sun, 18 Mar 2007 13:26:53 +0000 (13:26 +0000)]
== 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

13 years agoexcellent mesh unolder script by Matthew Chadwick
Campbell Barton [Sun, 18 Mar 2007 12:08:51 +0000 (12:08 +0000)]
excellent mesh unolder script by Matthew Chadwick
http://celeriac.net/unfolder/

13 years ago== Action Editor ==
Joshua Leung [Sun, 18 Mar 2007 06:06:54 +0000 (06:06 +0000)]
== 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.

13 years agoadded bpy.config, more configuration options still need adding.
Campbell Barton [Sun, 18 Mar 2007 04:46:54 +0000 (04:46 +0000)]
added bpy.config, more configuration options still need adding.

13 years ago== Recently-Opened Files List (Patch #5708) ==
Joshua Leung [Sun, 18 Mar 2007 03:30:24 +0000 (03:30 +0000)]
== 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.

13 years ago== Sculpt Mode ==
Nicholas Bishop [Sat, 17 Mar 2007 20:11:50 +0000 (20:11 +0000)]
== Sculpt Mode ==

Added a #define for the number of vertices the flatten brush should sample when calculating the distance to flatten to.

13 years agosource/blender/src/buttons_editing.c:
Ken Hughes [Sat, 17 Mar 2007 15:00:11 +0000 (15:00 +0000)]
source/blender/src/buttons_editing.c:
    Fix C90 variable declaration in function body
source/blender/src/editaction.c:
    remove unused variable

13 years agoFix various gcc warning, unused variables and incorrect type passed to
Ken Hughes [Sat, 17 Mar 2007 14:46:04 +0000 (14:46 +0000)]
Fix various gcc warning, unused variables and incorrect type passed to
*printf functions.

13 years agoMore fix various gcc warning, mainly related to signed/unsigned parameters
Ken Hughes [Sat, 17 Mar 2007 14:43:52 +0000 (14:43 +0000)]
More fix various gcc warning, mainly related to signed/unsigned parameters
passed in general.

13 years agoFix various gcc warning related to signed/unsigned parameters passed to
Ken Hughes [Sat, 17 Mar 2007 14:15:02 +0000 (14:15 +0000)]
Fix various gcc warning related to signed/unsigned parameters passed to
OpenGL functions.

13 years agoWhen pressing XKEY or DELETE in NLA/Action/IPO editors, you are no
Joshua Leung [Sat, 17 Mar 2007 05:50:47 +0000 (05:50 +0000)]
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.

13 years agoPython API
Ken Hughes [Sat, 17 Mar 2007 03:19:41 +0000 (03:19 +0000)]
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.

13 years agosome dealloc's I removed didnt get automaticly added back in by python, fixed now
Campbell Barton [Fri, 16 Mar 2007 14:44:31 +0000 (14:44 +0000)]
some dealloc's I removed didnt get automaticly added back in by python, fixed now

13 years agotype initialization updates, and refcount fix for lamp, reverted some changes to...
Campbell Barton [Fri, 16 Mar 2007 11:38:02 +0000 (11:38 +0000)]
type initialization updates, and refcount fix for lamp, reverted some changes to NMesh

13 years agoPatch #5460 by Juho V
Ton Roosendaal [Fri, 16 Mar 2007 11:36:47 +0000 (11:36 +0000)]
Patch #5460 by Juho V

Switch screen hotkey, CTRL+Left/Rightarrow now cycles.

13 years agoPatch #6121 by Diego Borghetti
Ton Roosendaal [Fri, 16 Mar 2007 11:29:40 +0000 (11:29 +0000)]
Patch #6121 by Diego Borghetti

Create/delete vertex groups now is possible in Object mode too (using the
buttons in editbuttons).

13 years agoPython API
Ken Hughes [Fri, 16 Mar 2007 05:39:30 +0000 (05:39 +0000)]
Python API
----------
Bugfix #6255: Library.Load() failed on some blend files prior to 2.43.
Consolidated some code to make Python and Blender UI more in common.  Also
fixed some compiler warnings in the process.

13 years agoFix numerous gcc warnings.
Ken Hughes [Fri, 16 Mar 2007 05:03:38 +0000 (05:03 +0000)]
Fix numerous gcc warnings.

13 years agoFixed array declaration in sculptmode.c
Nicholas Bishop [Thu, 15 Mar 2007 20:19:34 +0000 (20:19 +0000)]
Fixed array declaration in sculptmode.c

13 years agoPyApi,
Campbell Barton [Thu, 15 Mar 2007 14:57:00 +0000 (14:57 +0000)]
PyApi,
missing incref's for materials color values.

13 years agoThis is a fix for bug #6100
Kent Mein [Thu, 15 Mar 2007 12:34:44 +0000 (12:34 +0000)]
This is a fix for bug #6100
When using international fonts, blender was assuming that the
default language on the system was chinese.

Now it checks to see what language code you have selected and
if its chinese or japanese it converts those to utf8 and then
continues to translate them.

I can't fully check this so will need others to test it.  This
should at least be better now.

Kent

13 years agoPatch #6264
Ton Roosendaal [Thu, 15 Mar 2007 08:59:29 +0000 (08:59 +0000)]
Patch #6264

Pointer check added to prevent "Jkey" (swap render display buffers) to
crash in cases. Patch by Diego Borghetti.

13 years agoremoved unneeded dealloc functions
Campbell Barton [Thu, 15 Mar 2007 01:47:53 +0000 (01:47 +0000)]
removed unneeded dealloc functions

13 years agoremoved duplicate functionality, macro's and functions existed to check a PyObjects...
Campbell Barton [Thu, 15 Mar 2007 01:09:14 +0000 (01:09 +0000)]
removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's

13 years ago== Sculpt Mode ==
Nicholas Bishop [Wed, 14 Mar 2007 20:00:01 +0000 (20:00 +0000)]
== Sculpt Mode ==

* Added new brush, "Flatten". This brush pushes vertices along the normal defined by the average normal of each vertex within the brush area. The vertices are pushed towards the plane defined by vertices towards the edge of the brush. Essentially, this means that the direction of flattening is dependent on the surface beneath the brush.

* In order to make space for the flatten brush, the controls inside the Sculpt palette were widened to 268. (Note that the panel width didn't change, so it still fits properly in the vertical layout.)

* Todo: it would probably make sense to make the "View" slider available under the Brush tab available for the Flatten brush (currently it's only used for the Draw brush.)

13 years agoattempted fixage for gcc warnings with Python 2.5
Stephen Swaney [Wed, 14 Mar 2007 16:38:58 +0000 (16:38 +0000)]
attempted fixage for gcc warnings with Python 2.5

13 years agofix gcc warnings about no newline at end of file
Stephen Swaney [Wed, 14 Mar 2007 16:09:12 +0000 (16:09 +0000)]
fix gcc warnings about no newline at end of file

13 years agomany menu items would crash blender if there was no 3d view. added checks.
Campbell Barton [Wed, 14 Mar 2007 09:08:41 +0000 (09:08 +0000)]
many menu items would crash blender if there was no 3d view. added checks.

13 years agoapply the 3ds matrix to the mesh, This fixes some 3ds files and breaks others, but...
Campbell Barton [Wed, 14 Mar 2007 06:01:59 +0000 (06:01 +0000)]
apply the 3ds matrix to the mesh, This fixes some 3ds files and breaks others, but it seems to follow the 3ds format. for the files it messes up, just remove transformation.

13 years agomade all python types that can do .__copy__(), also do .copy()
Campbell Barton [Wed, 14 Mar 2007 03:01:24 +0000 (03:01 +0000)]
made all python types that can do .__copy__(), also do .copy()
added copy function to lamp, texture and ipo types

13 years agodisabled Object.Duplicate() in background mode bacause it needs the 3d view, added...
Campbell Barton [Wed, 14 Mar 2007 02:11:42 +0000 (02:11 +0000)]
disabled Object.Duplicate() in background mode bacause it needs the 3d view, added a note in the docs.

13 years ago==== MSVC 7.1 projectfiles ====
Andrea Weikert [Tue, 13 Mar 2007 18:23:05 +0000 (18:23 +0000)]
==== MSVC 7.1 projectfiles ====
- small update, added missing files.

13 years ago[ #6214 ] Select object of the same group.
Campbell Barton [Tue, 13 Mar 2007 16:15:59 +0000 (16:15 +0000)]
[ #6214 ] Select object of the same group.
rewritten to find the groups that an object is apart of only once (less listbase searching).
with the limitation of 24 maximum in the menu.

13 years agorenamed norepeatX/Y to ClampX/Y
Campbell Barton [Tue, 13 Mar 2007 12:50:36 +0000 (12:50 +0000)]
renamed norepeatX/Y to ClampX/Y

13 years agoBugfix #6211
Ton Roosendaal [Tue, 13 Mar 2007 12:20:55 +0000 (12:20 +0000)]
Bugfix #6211

Group nodes with animation nodes inside (like Time) did not get updated
correctly.

I also noticed that with time Nodes,  the hotkey "E" (execute) fails to do
a composite after frame changes, fixed that too.

13 years agoadded back videoscape for python
Campbell Barton [Tue, 13 Mar 2007 11:54:53 +0000 (11:54 +0000)]
added back videoscape for python

13 years agoremoved videoscape support, a format from 1988 that nobody uses anymore.
Campbell Barton [Tue, 13 Mar 2007 10:00:27 +0000 (10:00 +0000)]
removed videoscape support, a format from 1988 that nobody uses anymore.

13 years agoexiting editmesh when in face select mode could result in hidden and selected faces.
Campbell Barton [Tue, 13 Mar 2007 03:05:12 +0000 (03:05 +0000)]
exiting editmesh when in face select mode could result in hidden and selected faces.

13 years agopatch [#6213] msvc had problems with GL_CLAMP_TO_EDGE being undefined
Kent Mein [Tue, 13 Mar 2007 00:06:37 +0000 (00:06 +0000)]
patch [#6213]   msvc had problems with GL_CLAMP_TO_EDGE being undefined
on some systems.  If its undefined define it.

Kent

13 years agoPython API
Ken Hughes [Mon, 12 Mar 2007 19:45:42 +0000 (19:45 +0000)]
Python API
----------
Chris Want on IRC pointed out a grammatical error in the Bpy doc file.  While fixing
it, I found about a dozen more.

13 years agoBugfix #6167
Ton Roosendaal [Mon, 12 Mar 2007 16:27:20 +0000 (16:27 +0000)]
Bugfix #6167

Metaball delete could crash, if selected/active ball is not the 'mother'
ball.

13 years agoBugfix #6181
Ton Roosendaal [Mon, 12 Mar 2007 14:25:44 +0000 (14:25 +0000)]
Bugfix #6181

An acos() getting a negative value caused 'ray trace shadow bias' to go
wrong (and object render entirely black). Only in very rare cases... but
nevertheless a nice discovery fixing other unpredictable issues.
(Symptom: entire object renders black)

13 years agoBugfix #6183
Ton Roosendaal [Mon, 12 Mar 2007 13:31:47 +0000 (13:31 +0000)]
Bugfix #6183

Option "Align view to selected face(s)" (shift+v) did not work for non-
uniform scaled objects.

13 years agoBugfix #6173
Ton Roosendaal [Mon, 12 Mar 2007 10:30:39 +0000 (10:30 +0000)]
Bugfix #6173

Dupliverts + shaded mode did not work; patch provided by Riku Palomäk
(tonttu)

13 years agopython api
Campbell Barton [Mon, 12 Mar 2007 06:21:58 +0000 (06:21 +0000)]
python api
removed most custom add_*data* wrappers from Main.c
removed makeCurrent() from Text.c (was never in a release), use "bpy.texts.active = text" now
clamp new image sizes
made add_empty_action accept a string rather then a blocktype since the blocktype was only being used to choose one of 3 strings anyway.

13 years agoadded no-xtile and no-ytile to the images realtime properties and python api.
Campbell Barton [Mon, 12 Mar 2007 01:43:11 +0000 (01:43 +0000)]
added no-xtile and no-ytile to the images realtime properties and python api.

13 years agoFix for bug #6127:
Brecht Van Lommel [Mon, 12 Mar 2007 00:30:46 +0000 (00:30 +0000)]
Fix for bug #6127:
Import scripts could create meshes with old style edgecodes.

13 years agoPython API
Ken Hughes [Sun, 11 Mar 2007 18:20:55 +0000 (18:20 +0000)]
Python API
----------
Fixed some broken/disabled Texture attributes after Image refactor.
Added texture.autoRefresh attribute.

13 years agoRemove gcc compiler warnings from various files.
Ken Hughes [Sun, 11 Mar 2007 17:31:27 +0000 (17:31 +0000)]
Remove gcc compiler warnings from various files.

13 years agomade all data adding functions accept a name such as add_mesh or add_curve, previousl...
Campbell Barton [Sun, 11 Mar 2007 16:25:17 +0000 (16:25 +0000)]
made all data adding functions accept a name such as add_mesh or add_curve, previously only some datatypes adding functions accepted a name.
also updated the Bpy.py epydocs

13 years agoDocumentation for the new automatically imported "bpy" module. (was Blender.Main)
Campbell Barton [Sun, 11 Mar 2007 12:35:01 +0000 (12:35 +0000)]
Documentation for the new automatically imported "bpy" module. (was Blender.Main)

13 years ago=Cineon Bug=
Joseph Eagar [Sun, 11 Mar 2007 12:27:57 +0000 (12:27 +0000)]
=Cineon Bug=

In my attempts to get cinepaint's cineon code to work with files in memory,
I accidently rewrote something that should have been left as it is.  This
causes images whose image buffers didn't start right after the cineon header to
become "shifted" to the left.

The DPX code looks correct, though.

13 years agoBugfix #6201
Ton Roosendaal [Sun, 11 Mar 2007 12:14:50 +0000 (12:14 +0000)]
Bugfix #6201

Shape key drivers were not copied correctly, when choosing the option
"ADD NEW Scene -> Full copy".

13 years agoAction Editor - Remove unused code.
Joshua Leung [Sun, 11 Mar 2007 04:39:19 +0000 (04:39 +0000)]
Action Editor - Remove unused code.

Nothing ever called that part of code, and that code was
'not implemented' anyway.

13 years agomoved python functions that deal with blender libdata into gen_library.c from gen_uti...
Campbell Barton [Sun, 11 Mar 2007 04:05:45 +0000 (04:05 +0000)]
moved python functions that deal with blender libdata into gen_library.c from gen_utils and BPY_interface
small cleanup, removed unused functions and explicetly cast pointers..

13 years agoPyApi: fix for own bad bug, obdata was having a user removed when the object was...
Campbell Barton [Sat, 10 Mar 2007 12:37:03 +0000 (12:37 +0000)]
PyApi: fix for own bad bug, obdata was having a user removed when the object was removed with (scene.objects.unlink(ob))

13 years agoremoved python oops access, (was unreliable and nobody used it)
Campbell Barton [Sat, 10 Mar 2007 11:47:24 +0000 (11:47 +0000)]
removed python oops access, (was unreliable and nobody used it)
oops data access need to be done differently.

Blender.sys fix for win32 path bug 6193

13 years agoMain
Campbell Barton [Sat, 10 Mar 2007 09:43:43 +0000 (09:43 +0000)]
Main
* Added bpy.*.new() - works for all except sound and font types
* Added bpy.*.load() - works for sound, font and image types

Text3d - removed unneeded check.

13 years agoadded "bpy" as a module imported by default to replace Blender.Main as a new way...
Campbell Barton [Sat, 10 Mar 2007 06:33:19 +0000 (06:33 +0000)]
added "bpy" as a module imported by default to replace Blender.Main as a new way to access blender data
gen_utils was missing some type checks that made assigning a objects DupGroup and meshes texcomesh not work.

13 years agoPython API
Ken Hughes [Fri, 9 Mar 2007 22:21:23 +0000 (22:21 +0000)]
Python API
----------
Added Image.source attribute, so image type can be get/set for still, movie,
sequence or generated images.

13 years agoPython API
Ken Hughes [Fri, 9 Mar 2007 21:48:47 +0000 (21:48 +0000)]
Python API
----------
Rearrange includes, remove dead code to fix gcc warnings.

13 years ago-> Fix for bug #6150
Geoffrey Bantle [Fri, 9 Mar 2007 19:54:05 +0000 (19:54 +0000)]
-> Fix for bug #6150

Missing call to update despgraph caused merge tools to crash
when called from toolbox or header menus.

13 years ago-> Small bug fix for modifiers and info header stats
Geoffrey Bantle [Fri, 9 Mar 2007 15:36:21 +0000 (15:36 +0000)]
-> Small bug fix for modifiers and info header stats

Small but very annoying issue with  modifiers meant that G.totvert/totedge/totface
were updated to reflect the effects of a subsurf modifier in object mode but all other
modifier types were ignored. This was not only inconsistent, but also made it very
difficult to keep track of poly budgets. Now in order to obtain accurate counts
object_handle_update is called immediatly after adding a modifier and precedes  a call
to countall() which has been modified to query the final derived mesh directly
using dm->getNumVerts/Edges/Faces callbacks. Editmode behaviour is unchanged.

13 years ago* Visualise material 'Shadeless' a bit better in the 3D View solid mode.
Matt Ebb [Fri, 9 Mar 2007 04:19:59 +0000 (04:19 +0000)]
* Visualise material 'Shadeless' a bit better in the 3D View solid mode.
  Now it draws as if Ref = Emit = 1.0 - not as accurate as shaded mode,
  but it's better than before, and at least it allows transparency.

13 years agoPython API
Ken Hughes [Fri, 9 Mar 2007 00:11:02 +0000 (00:11 +0000)]
Python API
----------
Fix bug with variable declaration in middle of function.

13 years agoBPython API
Campbell Barton [Thu, 8 Mar 2007 14:37:34 +0000 (14:37 +0000)]
BPython API
added a function - GenericLib_assignData for assigning blender data, to assign an ipo to a camera or world to a scene for instance.
Using this function removed ~300 lines of code.
also fixes user count error in some places that didnt check.

also made it possible to clear the colorband by setting it to []

13 years agobugfix, material copy wasnt increasing the lighting groups user count, but removing...
Campbell Barton [Thu, 8 Mar 2007 13:43:59 +0000 (13:43 +0000)]
bugfix, material copy wasnt increasing the lighting groups user count, but removing the lighting group decreased it.

13 years agoBugfix #6176
Ton Roosendaal [Thu, 8 Mar 2007 12:22:50 +0000 (12:22 +0000)]
Bugfix #6176

Matrix cache for particles was read out of bounds. Fix found by Ken Hughes.

13 years agoBugfix #6190
Ton Roosendaal [Thu, 8 Mar 2007 12:05:34 +0000 (12:05 +0000)]
Bugfix #6190

Composite: renderlayer nodes were not tagged 'changed' when rerendered,
causing a composite to skip them. (only for nodes having another scene)

13 years agoAdded python access to material and texture colorbands.
Campbell Barton [Thu, 8 Mar 2007 06:35:01 +0000 (06:35 +0000)]
Added python access to material and texture colorbands.
mat.colorbandDiffuse
mat.colorbandSpecular
tex.colorband

gen_utils - removed unused func