Commit Graph

47594 Commits

Author SHA1 Message Date
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
Ton Roosendaal
054c471a04 Bugfix #6419
When adding images, there was no check if image file was a directory.
Result was an Image without name even. Fixed!
2007-03-29 12:42:30 +00:00
Ton Roosendaal
bb5ca9afdb Bugfix #6333
When using headerbuttons to switch to Material context buttons, the preview
was not re-rendered correctly.
2007-03-29 12:16:03 +00:00
Ton Roosendaal
eafb84118a Bugfix #6308
Composite preview in Image window didn't work OK when making a window
fullscreen. That because it depended too much on a composite editor to be
open, for refresh events.

Now you can use preview panels in a full-screen image window too.

It also works a bit different... noticable while dragging preview panel
around.
2007-03-29 12:08:14 +00:00
Ton Roosendaal
0b7d7e07c6 Bugfix #6312
When saving files (images), the filewindow was giving relative paths on
a save-over menu.

Also: added in group.c a note about problems with timeoffset.
2007-03-29 10:09:44 +00:00
Ton Roosendaal
1cc445e7ea Bugfix #6456
Boolean modifier on its own object crashes. Easy to prevent this user error
2007-03-29 08:34:03 +00:00
Stephen Swaney
a675bc1904 add some details for new sequence type 2007-03-29 05:08:09 +00:00
Ken Hughes
b8e425af7c Revisions to previous change of new_id().
Note: the intent of the original modification (and these updates) is not to
change how new_id() functions.  What has been done is to pull out the code
which calculates a new name for an ID in the case of duplicate, as would
happen when you copy any datablock, into a separate function.  This code is
necessary in the new Python Library module, since it otherwise is extremely
difficult to locate a new datablock appended from a library.  new_id() calls
this separate function to generate a name for the new ID if necessary, just
as it previously did.

To make the purpose of this new function clearer, I renamed it
check_for_dupid() and added more extensive comments.  I repeat, it's not
meant to be a substitute for new_id().
2007-03-29 04:55:29 +00:00
Ken Hughes
1e71afc48a Python API
----------
Fix gcc compiler warnings.
2007-03-29 03:47:50 +00:00
Campbell Barton
2d86a1ce28 adding a cone with no and cap crashed, fixed and added some comments 2007-03-29 00:10:53 +00:00
Kent Mein
65a9dcdab7 I switched the linux side of things to use pkg-config for
OpenEXR, and I switched all of the other platforms back to
no ThreadLib.  I really was trying to make this easier for people not
harder, and I'm afraid I failed.  Hopefully this clears things up for
people and everyone will switch to using the Makefiles. ;)

If your having problems you should be able to just add the IlmThread lib
back into your NAN_OPENEXR_LIBS inside of your user-def.mk and be good to
go.  let me know if you have problems with it.

Kent
2007-03-28 20:49:15 +00:00
Ton Roosendaal
1ba9226903 Option "New" in editbuttons, material panel, did not create a new unique
Material, but relinked the active. Was an old confusing annoying actually.
(And not useful, when do you want 2 material indices with same material?)

Now the 'new' duplicates material, if there is an active material.
2007-03-28 19:47:59 +00:00
Campbell Barton
273ca449d3 added options to add mesh (cap ends, radius and depth) 2007-03-28 15:25:07 +00:00
Ton Roosendaal
f5b919e12e Long wanted feature; decent ESC processing in composite nodes.
Works simple; just check for

		if(node->exec & NODE_BREAK)
			break;

The main process (node processor) sets such a flag, checking for esc
20 times per second. That means you can check for ESC while doing image
processing without much cpu overhead.

Currently only added in blur nodes and defocus. Needs to be added all over,
nice for others... needs careful tests too.

What we now could do is even calling ESC on editing commands or mouseclicks
in composite editor? Could give user feeling of interactive app :) Further,
finished nodes are kept in memory anyway.
2007-03-28 13:48:01 +00:00
Robert Holcomb
39ef0f4eba moved node_shader_lamp_loop to node.c and put an extern declaration in BKE_node.h to prevent multiple definition link errors. 2007-03-28 13:07:59 +00:00
Nathan Letwory
51c748aeef * this is a 'silent' commit, so it is easier to issue patches for pynodes. This code
is not activated unless patch is applied
2007-03-28 12:04:20 +00:00
Campbell Barton
c820e79e77 made the add mesh functions use do_clever_numbuts so multiple options can be in the one popup 2007-03-28 04:18:58 +00:00
Stephen Swaney
12f6c05ec3 Make a nice version number for printing Python version.
some py versions are formated as major.minor.subversion.

Clean up some old comments.
2007-03-28 03:18:21 +00:00
Robert Holcomb
6f267c8bda removed unused variable from function that was left over from static node list 2007-03-28 01:48:47 +00:00
Robert Holcomb
de3e0d36d5 Removed unused button code since it is set in drawnode.c 2007-03-28 01:45:57 +00:00
Chris Want
98760e69b3 Change link order (nodes<-->blenkernel) for cmake build. 2007-03-27 21:58:02 +00:00
Kent Mein
80237ceff9 patch to get cmake working with nodes now. Provided by Genscher.
I still have linking issues with it but it is better as is so I'm
commiting it.  Hopefully will have it fixed fully shortly.

Kent
2007-03-27 18:34:57 +00:00
Geoffrey Bantle
112c641263 -> Fix for bug #6327
Small fix for edge subdivide code. Handling of visibility flags was never
handled properly, this should fix.
2007-03-27 17:09:10 +00:00
Kent Mein
3ac0c09d15 This commit does a couple of things to the Makefiles.
The first is it adds libIlmThread.a to the OpenEXR libs.

The second thing it does, is make it possible to define what TARGETS
you want to build inside of your user-def.mk file.  This simplifies
source/Makefile quite a bit.  I made each platform have the same
defaults (build dynamic blender, gameengine and gameplayer)  I think
most platforms should be building this combo anyway and if you need to
change it its trivial so no need to have different defaults for each platform.
The new defines are as follows with their default settings in:
         source/nan_definitions.mk

    export WITH_BF_DYNAMICOPENGL ?= true
    export WITH_BF_STATICOPENGL ?= false
    export WITH_BF_GAMEENGINE ?= true
    export WITH_BF_GAMEPLAYER ?= true
    export WITH_BF_WEBPLUGIN ?= false

Let me know if you have any problems with it.

Kent
2007-03-27 15:42:27 +00:00
Campbell Barton
30fb777971 py api
bpy.*libBlickSeq*.new() - name is now an optiona arg.
moved some more scripts to bpy.* api.
2007-03-27 14:49:37 +00:00
Campbell Barton
66238eab7c PyAPI
curve - added curve_type() to return the curve type
BPyModule & gen_library - works with text3d now, can also make new text3d through bpy.curves.new
Added Draw.Label() so scripts can draw can using freetype.
widgetwizard - use Draw.Label
2007-03-27 11:37:54 +00:00
Nathan Letwory
0326ec77a9 === SCons ===
Bugfix #6168

* instead of compiling mallocn manually for makesdna, use the bf_guardedalloc lib
 that was already created looooooong time ago.
2007-03-27 10:50:03 +00:00
Nathan Letwory
e3ff98fc6b === OpenEXR ===
* fix [ #6105 ] Blender crashes when opening multilayer with node in compositor
  - Mem_IStream membuf was allocated on the stack, so it caused major troubles when
 out of the function scope. Now allocate it on the heap and let OpenEXR deal with
 freeing it.
  - moved + added delete file;'s for completeness
2007-03-27 10:13:57 +00:00
Ton Roosendaal
12c8ce44ca Bugfix #6453
Panel name of "transform properties" can change based on mode. This was
not drawn correct when panel minimized.
2007-03-27 09:13:18 +00:00
Nicholas Bishop
7be47ac0cd Fixed bug #6421, Layout of "Sculpt Properties" panel is broken in CVS
* Removed overlapping buttons (texture controls) from the floating palette for Sculpt Mode.
2007-03-27 03:52:34 +00:00
Ton Roosendaal
469f3e8756 Bugfix #6293
Multires Meshes crashed badly when joined.
Added check in join code to escape with a warning.
2007-03-26 20:35:56 +00:00
Campbell Barton
2b8bed8598 py api
* stopped bpy from importing automaticaly as decieded in the meeting.
* removed Blender.Main, since we agree it will be called bpy, renamed files also.
* updated epydocs from this and last commit.
* updated scripts to use bpy.*, and bugfix's for widgetwizard
2007-03-26 19:44:44 +00:00
Ton Roosendaal
e968f6ec4b Uninitialized variable fix. Might fix bug #6431, error in rendering of
irregular shadowbuffers.

Found by valgrind session, provided by Mathias 'Lynx3d' Wein
2007-03-26 19:44:21 +00:00
Ton Roosendaal
5c760e4811 Changed node type definitions to use a dynamic list.
This will allow python or plugin defined nodes to work as well.
(And fixes compile issues with MSVC in yesterdays commit for nodes)

Code provided by Nathan L.
Fixes in his code:
- free_nodesystem() was called too late (after guarded alloc was closed)
- free_nodesystem() was freeing nodes that were not malloced even
- free_nodesystem was using free, not freeN :)
- the typedefs needed to be malloced yes, to allow duplicate nodes like
  group but also for dynamic nodes.
2007-03-26 15:07:38 +00:00