Commit Graph

7527 Commits

Author SHA1 Message Date
Ken Hughes
819fc06a80 Fixing a few more gcc warnings by adding pointer casts. 2007-03-19 05:40:42 +00:00
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
9477a7bc5c added mesh skin to the face key menu and added a python slot here. 2007-03-19 03:22:42 +00:00
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
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
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
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
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
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
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
90eb851d50 added bpy.config, more configuration options still need adding. 2007-03-18 04:46:54 +00:00
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
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
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
2ee75aec15 some dealloc's I removed didnt get automaticly added back in by python, fixed now 2007-03-16 14:44:31 +00:00
bc1fdcd858 type initialization updates, and refcount fix for lamp, reverted some changes to NMesh 2007-03-16 11:38:02 +00:00
c5f4a0a1b0 Patch #5460 by Juho V
Switch screen hotkey, CTRL+Left/Rightarrow now cycles.
2007-03-16 11:36:47 +00:00
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
Ken Hughes
001939bd66 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.
2007-03-16 05:39:30 +00:00
Ken Hughes
115b65ce7c Fix numerous gcc warnings. 2007-03-16 05:03:38 +00:00
e4881c25c5 Fixed array declaration in sculptmode.c 2007-03-15 20:19:34 +00:00
2be1b26a1a PyApi,
missing incref's for materials color values.
2007-03-15 14:57:00 +00:00
6b55850116 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
2007-03-15 12:34:44 +00:00
7272bdff76 Patch #6264
Pointer check added to prevent "Jkey" (swap render display buffers) to
crash in cases. Patch by Diego Borghetti.
2007-03-15 08:59:29 +00:00
52e43441d1 removed unneeded dealloc functions 2007-03-15 01:47:53 +00:00
ee5dc4d0bf removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's 2007-03-15 01:09:14 +00:00
a567e43628 == 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.)
2007-03-14 20:00:01 +00:00
Stephen Swaney
26aa15969f attempted fixage for gcc warnings with Python 2.5 2007-03-14 16:38:58 +00:00
6b584a6504 many menu items would crash blender if there was no 3d view. added checks. 2007-03-14 09:08:41 +00:00
5c5a80f644 made all python types that can do .__copy__(), also do .copy()
added copy function to lamp, texture and ipo types
2007-03-14 03:01:24 +00:00
d3ae4b9944 disabled Object.Duplicate() in background mode bacause it needs the 3d view, added a note in the docs. 2007-03-14 02:11:42 +00:00
ed31a7c6bb [ #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.
2007-03-13 16:15:59 +00:00
5ae20c6eaf renamed norepeatX/Y to ClampX/Y 2007-03-13 12:50:36 +00:00
a8b41017f1 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.
2007-03-13 12:20:55 +00:00
df1df624ac added back videoscape for python 2007-03-13 11:54:53 +00:00
0745133528 removed videoscape support, a format from 1988 that nobody uses anymore. 2007-03-13 10:00:27 +00:00
56b9617ce0 exiting editmesh when in face select mode could result in hidden and selected faces. 2007-03-13 03:05:12 +00:00
844d6f9aa6 patch [#6213] msvc had problems with GL_CLAMP_TO_EDGE being undefined
on some systems.  If its undefined define it.

Kent
2007-03-13 00:06:37 +00:00
Ken Hughes
f9b20a37b2 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.
2007-03-12 19:45:42 +00:00
f523cce837 Bugfix #6167
Metaball delete could crash, if selected/active ball is not the 'mother'
ball.
2007-03-12 16:27:20 +00:00
f82e278528 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)
2007-03-12 14:25:44 +00:00
4697a9d9de Bugfix #6183
Option "Align view to selected face(s)" (shift+v) did not work for non-
uniform scaled objects.
2007-03-12 13:31:47 +00:00
8044f9d280 Bugfix #6173
Dupliverts + shaded mode did not work; patch provided by Riku Palomäk
(tonttu)
2007-03-12 10:30:39 +00:00
021cd4aac3 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.
2007-03-12 06:21:58 +00:00
268fdb7425 added no-xtile and no-ytile to the images realtime properties and python api. 2007-03-12 01:43:11 +00:00