Commit Graph

24438 Commits

Author SHA1 Message Date
Michael Fox
e7dd562095 Made Add Surface Operator more atomic, now each primitive has own operator, but calling the same function with different flags.
So they can me used in macros, and addons can use the menu  now, hope to see some very nice surface plugins
2010-06-13 05:48:21 +00:00
Nicholas Bishop
b26a23786d Fixed bug ##22580, 'All Edges' display doesn't work unless enter & exit edit mode for mesh
* Pass the appropriate mesh flag into dm->drawEdges
* Added the object and draw update notifiers to the RNA property
2010-06-13 02:54:55 +00:00
Campbell Barton
95b9e4171e use utility functions for vertex groups, no functional changes 2010-06-13 00:11:42 +00:00
Guillermo S. Romero
32ce3e3433 Change couple of strings.
Clearly mention SVN version being built and more direct POVRay error.
2010-06-12 23:09:01 +00:00
Campbell Barton
971e4be108 modify my last commit to fix [#22486] add_actuator crashes when name is bigger than 32 chars
Throwing an exception if the strings too long means scripts need to be aware of string lengths and changing a string length in RNA can too easily break scripts.
Instead honor the string length in RNA_property_string_set()
2010-06-12 17:30:21 +00:00
Campbell Barton
c3c6fb2de2 bugfix [#22486] add_actuator crashes when name is bigger than 32 chars
have pyrna raise an error on strings that are too long.
2010-06-12 15:49:01 +00:00
Campbell Barton
33b624cb5f [#22307] Camera Fly Mode Rolls Camera on local Z-axis
z-roll was enabled by default, also made rotate less sensitive.
2010-06-11 23:25:38 +00:00
Jens Ole Wund
bb0b596711 adding TODO comment 2010-06-11 23:05:43 +00:00
Luca Bonavita
dba99b544b == python api docs ==
* source/gameengine/PyDoc/bge.types.rst:
  KX_PolygonMaterial was missing the parent class indication (PyObjectPlus)

* source/blender/python/doc/sphinx_doc_gen.py:
  * unified all the "undocumented" descriptions, like
    http://www.blender.org/documentation/250PythonDoc/bpy.ops.anim.html#bpy.ops.anim.keyframe_delete_button
    so that it will be easy for Alex to CCS 'em and also now people will have a link to contribute descriptions,
    see http://wiki.blender.org/index.php/Dev:2.5/Py/API/Documentation/Contribute
  * moved the note about bpy_struct not being available in the api
    in a proper note directive, so that it's more evident
    (I didn't see it at first)
2010-06-11 22:41:13 +00:00
Campbell Barton
66134ea381 patch [#22570] Text editor syntax coloring update
from Jacob F (raccoon) 

This does two things to the text editor:
1) Adds coloring (same color as numbers) for True and False.
2) Fixes [#22551] Syntax coloring offset does not update when using real tabs and changing tab width
2010-06-11 15:35:11 +00:00
Campbell Barton
a0a99e4a4d [#22554] Register option on Texts doesn't work anymore
there were no hints that '.py' extension is needed, added tooltip.
2010-06-11 14:10:02 +00:00
Campbell Barton
e0bada19f9 [#22496] OpenSuse 11.2 The problem with built-Povray
give a better error message when povray isnt found.
2010-06-11 13:45:58 +00:00
Sergey Sharybin
d811c284f9 Deny applying location/rotation to 2D curve - such transformation could
make points have non-zero local z-coordinates, which is confusing for 2D.
2010-06-11 13:00:24 +00:00
Campbell Barton
eb3220fa83 rna api
- ParticleHairKey.location can now be set (object space location).
- Library.parent was set to ID type.
2010-06-11 10:46:47 +00:00
Campbell Barton
4aa2ad003b game world buttons had old property name for mist toggle 2010-06-11 09:09:57 +00:00
Nicholas Bishop
2980d902b9 Fixed bug #21348, Hide selection in Edit Mode not working with some modifiers (VBOs)
Was actually a couple bugs:
* VBO bug was that hidden faces weren't being skipped correctly. Fixed that and rewrote this bit of VBO drawing code more clearly (less duplication, less unecessary state, and comments even)
* Second bug was that CCGDerivedMesh wasn't outputing ORIGINDEX data for faces. (it's not doing it for edges or verts either, but I don't know that we need it to.) At any rate, we do need this data for faces so that additional DerivedMeshes on top of subsurf know what faces in the editmesh are hidden.
2010-06-11 07:57:43 +00:00
Dalai Felinto
b45b0512c8 create COMPAT_ENGINE in game panels to allow external game engines - patch from Xavier Thomas(xat) 2010-06-10 23:53:13 +00:00
Campbell Barton
8480b21d4a bugfix [#22569] Bezier splines.points segfault 2010-06-10 22:11:41 +00:00
Campbell Barton
1022ec3fe4 clear python console namespace when used with a new window manager, otherwise old python objects are kept around between opening different blend files (leaking memory).
ideally loading a new file would clear the namespace but practically its unliekly to be a problem.
2010-06-10 21:31:39 +00:00
Sergey Sharybin
6aaf55eee5 Copy name from original modifier rather than generate new unique in copy_object 2010-06-10 21:23:09 +00:00
Diego Borghetti
0d36ce3252 Fix bug #22563 Two modifers with same name on one object
The copy_object function don't call modifier_unique_name so
every modifier (in this case, the array) get the same name.
2010-06-10 21:12:22 +00:00
Nicholas Bishop
7d841b2f83 Fixed bug #22558, Show Cone & Square look strange
* Fixed a couple things: for triangle fans, you have to put an extra vert to make them closed, and also flipped the draw order so that the normals went the same as for circle cones.
2010-06-10 19:35:37 +00:00
Campbell Barton
ac59cad93f bugfix [#22561] Make Dupliface Memory Leak 2010-06-10 18:56:52 +00:00
Campbell Barton
7e21cede8f setting the sequencer strip filepath for sound strips would rename the strip path but not the sounds,
resulting in sounds that didnt play in the sequencer unless you removed and replaced them with a strip that pointed to the new path.

The way these 2 datablocks work together is a bit odd, I think this is OK for now but should be better defined.
2010-06-10 15:41:01 +00:00
Campbell Barton
64fbe2ee21 Minor modification to how objects are selected for animation baking,
Rather then only baking parent objects. Only bake objects which are have no parents in the original scene.
This allows for parenting and unparenting within the game engine without gaps in the animation curves.
2010-06-10 14:42:24 +00:00
Campbell Barton
0cfdb63499 lamp drawing clip start request by venomgfx, with wide lamps its hard to tell where clip start is at the edge of a lamp. 2010-06-10 07:57:25 +00:00
Campbell Barton
006d5e82e8 more cleanup to bpy.context.copy(), exclude rna values and its self. 2010-06-09 19:44:06 +00:00
Campbell Barton
dd72ffe3ff py/rna api:
- bpy.context wasnt being created from the python bpy.types.Context type defined in bpy_types.py (bpy.context.copy() failed for eg.)
- bpy.context.copy() was returning C defined methods like FloatProperty(), which are not useful in this case, removed.
2010-06-09 19:31:10 +00:00
Campbell Barton
6b21085ed5 enable adding objects in background mode by not using the context to get the object added. 2010-06-09 19:20:05 +00:00
Campbell Barton
1028284301 pep8, whitespace edits 2010-06-09 19:12:03 +00:00
Campbell Barton
e3daab158c fix for crash setting the objects layers 2010-06-09 15:56:50 +00:00
Diego Borghetti
e2bc4ca9ce Fix #22317 View reamins in camera's view after camera is deleted (again)
The problem was not in the editors, the code in blenkernel have a XXX
in the perspective value. Now unlink_object also update the ARegion.
2010-06-09 15:35:10 +00:00
Campbell Barton
1a36867017 recent addition: Shift+H in node editor was switching the preview of node types that didnt support it. 2010-06-09 14:17:22 +00:00
Campbell Barton
6cc6f8495f - added a flag argument to WM_operator_properties_filesel() currently only used for relative path option.
- added relative option to saving external multires data
- renamed multires external functiosn to have save / pack as suffix.
- added TODO's for file select operators that should support relative paths but dont.

- also disable openmp on linux cross compile, mingw currently isnt linking -lgomp
2010-06-09 14:04:34 +00:00
Campbell Barton
0ef2431220 python utility property library.users_id: returns a tuple of all ID datablocks which use this library. 2010-06-09 09:48:41 +00:00
Campbell Barton
c023cd20fc attempt to fix problem with quicktime on MSVC 2010-06-09 08:33:22 +00:00
Campbell Barton
eb081dd991 rename rna function obj.make_display_list(scene) --> obj.update(scene)
also added 3 optional bool arguments, 'object', 'data' & 'time', matching the object recalc flags.
2010-06-09 08:24:31 +00:00
Dalai Felinto
3e56c4dda1 Logic Editor: bugfix for "Unable to Add Controllers sometimes" (reported in IRC by Daniel Salazar (ZanQdo)
What was happening; if
the old code (2.49) was changing the status from 0 to 1 inside the interface code. e.g. if (!ob->status) ob->status = 1;
Initializing it properly (in blenkernel) and making sure the new status is ever 0 (in rna_object.c) should fix it.

And yes, the log is bigger than the patch !
2010-06-09 08:00:45 +00:00
Matt Ebb
668a5156cd Fix [#22188] Minor UI bug with panels in the properties window.
This prevents header-less panels (such as object name in object properties) from being re-sorted
when dragging other panels.

Also minor tweak, make the 'a' key shortcut to open and close panels only work with there are no 
other modifier keys (like alt).
2010-06-09 07:55:49 +00:00
Campbell Barton
d36da839b1 reverting own recent change to switch off RULE_MESSAGES since you cant see which files are rebuilding. 2010-06-09 06:21:07 +00:00
Matt Ebb
6d49d7043a Fix [#22111] Quad View panes have wrong view when switching between Global/Local View
Joe already committed this to render branch in r28545, but it's not in trunk. 
The code that was committed doesn't seem to work properly, either, needs braces.
2010-06-09 04:54:10 +00:00
Matt Ebb
1c693079a2 Fix [#22538] Crash when Selecting Particle Properties Tab (File-dependant)
psys->parent pointer wasn't getting handled in lib_link_particlesystems()
2010-06-09 02:42:20 +00:00
Matt Ebb
23d68fed88 Changed the HairKey location rna prop to give a location in object space,
rather than in its own internally used emitting-face-coordinate-system 
(which is how the data is stored in DNA - that data now exists in rna as 
hairkey.location_hairspace)

Basically this makes the hair information that's in rna a lot more useful, 
making it possible to export hair strands to external renderers for example.
2010-06-09 01:17:51 +00:00
Diego Borghetti
d4518ca79e Fix #22534 linking object data for two forces results in crash.
This is because the make_links_data_exec don't check for the
object type like before, so try to access the obdata of an empty
and blender crash.

The solution is not the best, we have a new function
allow_make_links_data to check if we can links data from one
object to another.

The real solution is build the menu like the 2.4x, so only
show the options that we allow for the object type that
we have select/active.

Matt, any suggestion ?
2010-06-08 20:24:28 +00:00
Campbell Barton
728799e0d8 texture user attributes, users_material, users_object_modifier 2010-06-08 13:03:49 +00:00
Campbell Barton
c5cee16630 better not have an instant crash key, script reload currently disabled ubless running in debug mode.
removing keying sets and netrender makes reloading work so probably a problem with how rna works with these classes.
2010-06-08 10:56:59 +00:00
Daniel Salazar
7caae1104e Reverting Tom's change to Merge to Quad in Trunk too 2010-06-08 10:42:35 +00:00
Joshua Leung
c5605c10d6 Assorted View2D formatting tidyups... 2010-06-08 00:51:57 +00:00
Joshua Leung
920850e630 Bugfix #22453: Jump to Next keyframe doesn't work on some frame
Jump to keyframe would get 'stuck' if it encountered a keyframe on "fraction" frames. Now, it will try multiple times until it finds one.
2010-06-08 00:08:45 +00:00
Luca Bonavita
0cae214a78 == python api docs ==
bge.types
---------

- removed lists if they were already available in bge.logic and crosslinked
  where the list contained description, moved the descriptions in bge.logic
  so we have useful thing in one place only
- fixed a lot of bad formatting, like bad indentation and usage of TAB
- changed from literal to codeblocks that smerch for the useful suggestion :)
- whered appropriate I've moved code examples to the end, after notes and all
  it is blocking to have a big black block before actually see a method parameters or return type
- have doubt about the list at bge.types.html#bge.types.SCA_MouseSensor.mode
  possibly tomorrow will ask Dalai
  
bge.logic
---------

- added sensor status list
- cross linked with bge.types where needed
- added a section "ShapeAction Actuator" because in bge.types these constants are docuemented, but in 2.5 I don't see the ShapeAction Actuator 
(anymore, or for now)
  I'll ask Dalai tomorrow or when possible (check bge.logic.html#shape-action-actuator once cambo rebuilds the docs)
- moved descriptions from bge.types lists to logic page where appropriate
- where possible, added custom directive :value: so we have a consistent way to show the value of constants
2010-06-07 23:50:43 +00:00