Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-03Cleanup: Internal degrees removal.Bastien Montagne
This patch changes most of the reamining degrees usage in internal code into radians. I let a few which I know off asside, for reasons explained below - and I'm not sure to have found out all of them. WARNING: this introduces forward incompatibility, which means files saved from this version won't open 100% correctly in previous versions (a few angle properties would use radians values as degrees...). Details: - Data: -- Lamp.spotsize: Game engine exposed this setting in degrees, to not break the API here I kept it as such (using getter/setter functions), still using radians internally. -- Mesh.smoothresh: Didn't touch to this one, as we will hopefully replace it completely by loop normals currently in dev. - Modifiers: -- EdgeSplitModifierData.split_angle, BevelModifierData.bevel_angle: Done. - Postprocessing: -- WipeVars.angle (sequencer's effect), NodeBokehImage.angle, NodeBoxMask.rotation, NodeEllipseMask.rotation: Done. - BGE: -- bConstraintActuator: Orientation type done (the minloc[0] & maxloc[0] cases). Did not touch to 'limit location' type, it can also limit rotation, but it exposes through RNA the same limit_min/limit_max, which hence can be either distance or angle values, depending on the mode. Will leave this to BGE team. -- bSoundActuator.cone_outer_angle_3d, bSoundActuator.cone_inner_angle_3d: Done (note I kept degrees in BGE itself, as it seems this is the expected value here...). -- bRadarSensor.angle: Done. Reviewers: brecht, campbellbarton, sergey, gaiaclary, dfelinto, moguri, jbakker, lukastoenne, howardt Reviewed By: brecht, campbellbarton, sergey, gaiaclary, moguri, jbakker, lukastoenne, howardt Thanks to all! Differential Revision: http://developer.blender.org/D59
2013-09-12code cleanup: set enums as static or add RNA_enum_types.h where they are ↵Campbell Barton
used elsewhere. also minor style cleanup.
2013-09-05BGE: Removing the touch sensor and converting all touch sensors to collision ↵Mitchell Stokes
sensors.
2013-03-25I18n: use id_windowmanager context for keymap idnames. Solves some issues ↵Bastien Montagne
with those names (notably "Clip" one, and "Screen" too) in some translations. Also move "Key" as "Keyboard" (opposed to "Keyframe") to same context.
2013-03-25More new data names translation (most cases should be covered now).Bastien Montagne
Also done a few cleanup here and there...
2013-03-07use bool for rna funcs.Campbell Barton
2012-09-22code cleanup: make many functions staticCampbell Barton
2012-09-12bugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x ↵Dalai Felinto
[Patch] - based on the patch from HG1
2012-06-28code cleanup: compile with clang and quiet some warnings.Campbell Barton
2012-05-12style cleanup: mostly whitespace in rnaCampbell Barton
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-18Code style edits (mostly spliting long lines, and removing trailing spaces).Bastien Montagne
Note about long lines: I did not touch to two pieces of code (because I don’t see any way to keep a nicely formated, compact code, with shorter lines): * The node types definitions into rna_nodetree_types.h * The vgroup name functions into rna_particle.c
2012-03-07style cleanup - braces & else / if'sCampbell Barton
2012-03-06Code cleanup in rna files (huge, higly automated with py script).Bastien Montagne
Addresses: * C++ comments. * Spaces after if/for/while/switch statements. * Spaces around assignment operators.
2012-01-19patch [#29679] Expose connected logic bricks from pythonDalai Felinto
it exposes sensor.controllers and controller.actuators this is how the data is exposed in blender. to have controller.sensors or actuator.controllers is not that straightforward
2011-12-04A (hopefully last) bunch of fixes and tweaks to UI label and messages (found ↵Bastien Montagne
while translating in french).
2011-11-04Fix #29024: Logic Bricks allow same name for multiple bricksSergey Sharybin
Check for unique name when setting name for logic bricks.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-08-18BGE: Upon further investigation this should have been 8 since up/down and ↵Mitchell Stokes
left/right both are just one axis each. So, in actuality, the number of directions = 2, not 4, and thus JOYAXIS_MAX/directions = 16/2 = 8. 8 was also the max used in 2.4x.
2011-08-18BGE: Upping the max Axis Number for the Axis event type on joystick sensors ↵Mitchell Stokes
from 2 to 4. The BGE supports up to 16 axis. For Axis events (not Single Axis), you get for directions per axis (up, down, left, right). So, the max should be JOYAXIS_MAX/directions = 16/4 = 4.
2011-05-26add the property as an argument to enum item functions, not used yet but ↵Campbell Barton
needed for dynamic python enums.
2011-04-21whitespace only, no functional change mixed tabs/spaces --> tabs.v2.57aCampbell Barton
2011-03-02Logic UI: reverting back the PROP_ANGLE propsDalai Felinto
The Logic Bricks that use angles (Radar Sensor and Constraint Actuator) do so in degree. Reverting for the time being. Ideally we want to make them to use radians internally (that requires at least a doversion and a convert from radians to degree in BGE Converter routine). If someone feels like helping on that, please go ahead.
2011-02-27doxygen: blender/makesrna tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-07Logic UI: Armature Actuator + general Captalizing 1st letter of UI textDalai Felinto
- Armature Actuator now only shows the "Secondary Target" option when the Bone Constraint supports it (IK only now). -- that may be overkill I don't know. It shouldn't slow down the UI considerably, so it should be fine. Easy to revert if needed though. - renaming things such as "Start frame" to "Start Frame"
2011-01-21Logic UI + missing listener in Outliner - changes on Armature Sensor and ↵Dalai Felinto
Visibility Actuator * fix for armature sensor (Status Changed doesn't use any value to evaluate itself) + renamed "Test Type" to "Test" * visibility tooltip was wrong - now we can change visibility from the physic buttons instead of the outliner * bonus * when you change the visibility from the physics panel the icon in the outliner wasn't changing
2011-01-21Logic UI: more tooltips, adding (blank = all objects) for the Property ↵Dalai Felinto
field of the physic sensors + using PROP_ANGLE for Radar Sensor (to work in tooltips bring good karma !)
2011-01-21BGE Logic UI: Near Sensor tooltip updateDalai Felinto
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2010-11-26follow up of "Bugfix #23576" (Logic UI) - replacing hardcoded values by ↵Dalai Felinto
RNA_struct_is_a + making rna_sensor future proof
2010-11-26BGE Bugfix: [#24926] Sensor 'Radar' les axes X+ et Y+ ont été inversé. ↵Dalai Felinto
(oui, a french bug report :) we were using SENSOR_RAY for the radar sensor axis. However the Ray axis is inverted (God knows why) so I created a set of defines only for radar sensor. Also I thought it was a good idea to replace some hardcoded values in Radar and Ray codes by their defines in DNA_sensor_types.h (similar to what Benoit did for Armature Sensor, so I see no problem on that).
2010-11-14Logic UI bugfix: [#24628] two specific tooltips of keyboard sensor reversedDalai Felinto
I also changed the order of them (target and log toggle) in the UI to match 2.49
2010-11-02Fix for some enum property identifiers, that were not using upper caseBrecht Van Lommel
with underscore, or were simply not set correctly after code copy/paste.
2010-09-15Logic UI: reset the value of a key when clicking outside the input buttonDalai Felinto
Otherwise you had no way to set it to none. This doesn't really matter, but it's nice "userwise" to be able to clear the pressed key.
2010-08-17apply logic brick rna renamingCampbell Barton
2010-08-03rna pointer poll function, not used yet.Campbell Barton
2010-07-11Logic Editor Python API: link/unlink logics through pythonDalai Felinto
After initial talk with Matt (awhile ago) we realzed that rna_api would fit well for this instead of an operator. The next step would be to move the current UI code to use the rna funcs instead. Note: it takes the s/c/a as argument, not its name. (e.g. cont.link(actuator=act) ) Sample code to link all the logic bricks between each other: ob = bpy.context.object for cont in ob.game.controllers: for sens in ob.game.sensors: cont.link(sensor=sens) for act in ob.game.actuators: cont.link(actuator=act) For a script to create bricks, link bricks, unlink bricks and remove them: http://www.pasteall.org/14266
2010-06-21Logic UI: Pin option for sensor and actuators (from 2.49)Dalai Felinto
- implemented the old functionality of pin a sensor or actuator when "show state" is on. - fixed code for setting/resetting VISIBLE and LINKED flags for sensors and actuators (so states buttons is working for actuators and sensors) - move the flag setting code (^^^) to a pre-processing part of the logic ui code.
2010-05-27Logic Editor: removing usercount for existent datablocksDalai Felinto
Using custom setfuncs to avoid increase/decrease of usercount. That way nothing stops you from removing a material that is used by a sensor, or a mesh, an action ... (this is how 2.49 works too) * also some general code cleaning/fix (adding static casts, replacing libaddr_us by lib_addr for dome text (I had no idea how user count worked back then)
2010-05-24Logic Editor - fix for Keyboard Sensor + Copy Game Property fancy submenuDalai Felinto
* Keyboard Sensor entry keys (key, modifier 1 and 2) can actually be any key - (you can use Shift as main key, and D as modifier if you want). It's - strange in my opinion, but it's 2.49 way of doing it. * Copy Game Property (operator found in SPACE menu) - reorganized it so the properties appear as submenu items. - a "little lot" of work for such a small eye-candie but well I hope more - people like it as well :) Matt, I had to recreate the dynamic_enum to make it work. I'm count on you for a real fix for this ;)
2010-05-19Logic UI and Operators: adjusts on Layout + copy properties operator + fix ↵Dalai Felinto
on copy logic bricks operator (and moved to OBJECT_OT) * adjusts on Layout: - in order to avoid much changes when copying Logics, it's nice to have the logic s/c/a always displaying even though it's not valid (e.g. edit mesh used from a camera object). Now a message shows in the s/c/a alerting to the problem. * logic operators under OBJECT_OT - copy properties and logics Matt, is it possible to have the object game properties listed as a submenu from "Copy Properties" ? So from the "Copy Game Property" menu we would have three options: "Copy a property" -> (submenu) prop1, prop2, prop3 "Replace all Properties" "Merge all Properties" For the current task list in Logic Editor: http://www.pasteall.org/13245
2010-05-11Logic UI: using the RNA interface as default - commit pre-subversion bumping ↵Dalai Felinto
(i.e. no DNA changes here) Also: extra set funcs, layout adjustments The patch for the subversion commit was getting too big, and it will be hard to distinguish what was essentially do_version + DNA changes and what was layout adjustments. So this is the first part of the commit. The next may take a bit more because I'm not so confident in my readfile changes.
2010-05-10Improved the Ray Sensor UI in the updated Logic Editor.William Reynish
2010-05-09Logic UI - lookup for properties (matt need your help to finish it)Dalai Felinto
I based this code on drawnode, so I hope this is the right way of doing this. Working Sensors: - keyboard - property Working Actuators: - property (partly) - ipo - action - shape action - message - random Need help with: - actuator sensor - property actuator (for the second object) - touch/ray/collision sensors + constraint actuator (for the material lookup, not the property one) maybe a doversion + changing the type to material work better here (as we have in touch sensor) + added notifier for the game property.
2010-05-08Logic UI: add notifiers for sensors and controllers (so the ui updates if ↵Dalai Felinto
you change the value through script) + some layout adjusments.
2010-05-07Restrict keyboard sensor stored events to only what's appropriate per propertyMatt Ebb
(normal key, modifier key, etc)