BGE: Remove duplicated audio panel from Render context
This commit removes the audio panel from Render context as it exists a similar panel in Scene context. Also, it gives to the Distance Model a similar UI layout as it was in the removed render->audio panel
This commit is contained in:
@@ -519,22 +519,6 @@ class SCENE_PT_game_navmesh(SceneButtonsPanel, Panel):
|
||||
row.prop(rd, "sample_max_error")
|
||||
|
||||
|
||||
class RENDER_PT_game_sound(RenderButtonsPanel, Panel):
|
||||
bl_label = "Sound"
|
||||
COMPAT_ENGINES = {'BLENDER_GAME'}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
scene = context.scene
|
||||
|
||||
layout.prop(scene, "audio_distance_model")
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(scene, "audio_doppler_speed", text="Speed")
|
||||
col.prop(scene, "audio_doppler_factor")
|
||||
|
||||
|
||||
class WorldButtonsPanel:
|
||||
bl_space_type = 'PROPERTIES'
|
||||
bl_region_type = 'WINDOW'
|
||||
|
||||
@@ -263,10 +263,11 @@ class SCENE_PT_audio(SceneButtonsPanel, Panel):
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
col.label("Listener:")
|
||||
col.label("Distance Model:")
|
||||
col.prop(scene, "audio_distance_model", text="")
|
||||
col.prop(scene, "audio_doppler_speed", text="Speed")
|
||||
col.prop(scene, "audio_doppler_factor", text="Doppler")
|
||||
sub = col.column(align=True)
|
||||
sub.prop(scene, "audio_doppler_speed", text="Speed")
|
||||
sub.prop(scene, "audio_doppler_factor", text="Doppler")
|
||||
|
||||
col = split.column()
|
||||
col.label("Format:")
|
||||
|
||||
Reference in New Issue
Block a user